mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#279 Activate riuMainWindow before taking snapshots during regression tests
This commit is contained in:
@@ -1903,8 +1903,11 @@ void RiaApplication::saveSnapshotForAllViews(const QString& snapshotFolderName)
|
||||
RiuMainWindow* mainWnd = RiuMainWindow::instance();
|
||||
if (!mainWnd) return;
|
||||
|
||||
if (m_project.isNull()) return;
|
||||
// Activate RiuMainWindow to make sure there is an active main window used from snapshot code in
|
||||
// RicSnapshotViewToFileFeature::saveSnapshotAs()
|
||||
QApplication::setActiveWindow(mainWnd);
|
||||
|
||||
if (m_project.isNull()) return;
|
||||
|
||||
QDir snapshotPath(snapshotFolderName);
|
||||
if (!snapshotPath.exists())
|
||||
|
||||
Reference in New Issue
Block a user