mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 23:53:59 +02:00
bugfix 2600
This commit is contained in:
+13
-2
@@ -420,8 +420,19 @@ void FWWindow::fileSaveAs()
|
||||
void FWWindow::fileExit()
|
||||
{
|
||||
if (activeProject())
|
||||
activeProject()->fileExit();
|
||||
else
|
||||
{
|
||||
QList<QMdiSubWindow *> subWindowList = m_space->subWindowList();
|
||||
for (int i = 0 ; i < subWindowList.size(); i++)
|
||||
{
|
||||
ProjectPanel * project = dynamic_cast<ProjectPanel*>(subWindowList[i]->widget ());
|
||||
if (project!=NULL)
|
||||
{
|
||||
project->fileClose();
|
||||
}
|
||||
}
|
||||
// activeProject()->fileExit();
|
||||
}
|
||||
// else
|
||||
qApp->quit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user