bugfix 2600

This commit is contained in:
2008-05-29 13:32:23 +00:00
parent 89a70b537a
commit d40028a347
+13 -2
View File
@@ -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();
}