mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#846 Removed obsolete flag to closeProject and make sure project is closed when last main window is closed
This commit is contained in:
@@ -221,10 +221,7 @@ void RiuMainWindow::closeEvent(QCloseEvent* event)
|
||||
|
||||
if (!app->tryClosePlotWindow()) return;
|
||||
|
||||
if (!RiaApplication::instance()->closeProject(true))
|
||||
{
|
||||
return;
|
||||
}
|
||||
RiaApplication::instance()->closeProject();
|
||||
|
||||
event->accept();
|
||||
}
|
||||
@@ -984,7 +981,8 @@ bool RiuMainWindow::checkForDocumentModifications()
|
||||
void RiuMainWindow::slotCloseProject()
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
app->closeProject(true);
|
||||
|
||||
app->closeProject();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user