We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed18702 commit e8445aeCopy full SHA for e8445ae
src/MainWindow.cpp
@@ -799,11 +799,12 @@ bool MainWindow::closeFiles()
799
800
bool projectClosed = closeProject();
801
802
- // Now all tabs can be closed at once without asking user.
803
- // Close tabs in reverse order (so indexes are not changed in the process).
804
- for(int i=ui->tabSqlAreas->count()-1; i>=0; i--)
805
- closeSqlTab(i, /* force */ true, /* askSaving */ false);
806
-
+ if (projectClosed) {
+ // Now all tabs can be closed at once without asking user.
+ // Close tabs in reverse order (so indexes are not changed in the process).
+ for(int i=ui->tabSqlAreas->count()-1; i>=0; i--)
+ closeSqlTab(i, /* force */ true, /* askSaving */ false);
807
+ }
808
return projectClosed;
809
}
810
0 commit comments