mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Modification of the qmessagebox during the open of project
more recently than the qet's version used. The qmessagebox request if we want continue or cancel the open of project git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1314 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -794,7 +794,7 @@ bool QETDiagramEditor::openAndAddProject(const QString &filepath, bool interacti
|
||||
// cree le projet a partir du fichier
|
||||
QETProject *project = new QETProject(filepath);
|
||||
if (project -> state() != QETProject::Ok) {
|
||||
if (interactive) {
|
||||
if (interactive && project -> state() != QETProject::FileOpenDiscard) {
|
||||
QET::MessageBox::warning(
|
||||
this,
|
||||
tr("\311chec de l'ouverture du projet", "message box title"),
|
||||
@@ -807,6 +807,7 @@ bool QETDiagramEditor::openAndAddProject(const QString &filepath, bool interacti
|
||||
).arg(filepath)
|
||||
);
|
||||
}
|
||||
delete project;
|
||||
return(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user