Ensure dock windows are completely closed and opened when exporting snapshots through command file interface

This commit is contained in:
Bjørnar Grip Fjær 2017-08-30 15:29:27 +02:00
parent 373de4935a
commit c5ed9ccaa6

View File

@ -58,6 +58,7 @@ void RicfExportSnapshots::execute()
RiuMainWindow* mainWnd = RiuMainWindow::instance();
CVF_ASSERT(mainWnd);
mainWnd->hideAllDockWindows();
RiaApplication::instance()->processEvents();
QString absolutePathToSnapshotDir = RicfCommandFileExecutor::instance()->getExportPath(RicfCommandFileExecutor::SNAPSHOTS);
if (absolutePathToSnapshotDir.isNull())
@ -74,4 +75,5 @@ void RicfExportSnapshots::execute()
}
mainWnd->loadWinGeoAndDockToolBarLayout();
RiaApplication::instance()->processEvents();
}