mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 15:41:41 +02:00
bugfix 2600
This commit is contained in:
+13
-2
@@ -420,8 +420,19 @@ void FWWindow::fileSaveAs()
|
|||||||
void FWWindow::fileExit()
|
void FWWindow::fileExit()
|
||||||
{
|
{
|
||||||
if (activeProject())
|
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();
|
qApp->quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user