mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
L'application se lance desormais une seule fois par utilisateur
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@348 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -569,6 +569,16 @@ bool QETDiagramEditor::openDiagram() {
|
||||
open_dialog_dir.absolutePath(),
|
||||
tr("Sch\351mas QElectroTech (*.qet);;Fichiers XML (*.xml);;Tous les fichiers (*)")
|
||||
);
|
||||
|
||||
return(openAndAddDiagram(nom_fichier));
|
||||
}
|
||||
|
||||
/**
|
||||
Cette methode ouvre un fichier.
|
||||
@param nom_fichier Chemin du fichier a ouvrir
|
||||
@return true si l'ouverture a reussi, false sinon
|
||||
*/
|
||||
bool QETDiagramEditor::openAndAddDiagram(const QString &nom_fichier) {
|
||||
if (nom_fichier.isEmpty()) return(false);
|
||||
|
||||
open_dialog_dir = QDir(nom_fichier);
|
||||
|
||||
Reference in New Issue
Block a user