mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 23:50:19 -05:00
Popup window placement improvements (#13464)
* Improve parent settings for message boxes and progress info
This commit is contained in:
54 files changed
+203
-95
No files matched your search
@@ -19,6 +19,7 @@
|
||||
#include "RimGenericJob.h"
|
||||
|
||||
#include "RiaColorTools.h"
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include "RimJobMonitor.h"
|
||||
@@ -170,7 +171,9 @@ bool RimGenericJob::execute()
|
||||
m_lastRunFailed = true;
|
||||
m_isRunning = false;
|
||||
setDeletable( true );
|
||||
QMessageBox::critical( nullptr, name(), "Failed to start job. Check log window for additional information." );
|
||||
QMessageBox::critical( RiaGuiApplication::widgetToUseAsParent(),
|
||||
name(),
|
||||
"Failed to start job. Check log window for additional information." );
|
||||
}
|
||||
|
||||
return startOk;
|
||||
|
||||
Reference in new issue
Block a user