mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4601 Make sure 3D main window is focus window when opening grid
This commit is contained in:
parent
d663ea2ae7
commit
529f181689
@ -1292,8 +1292,18 @@ void RiaGuiApplication::onFileSuccessfullyLoaded(const QString& fileName, RiaDef
|
||||
if (fileType & RiaDefines::ANY_ECLIPSE_FILE)
|
||||
{
|
||||
getOrCreateAndShowMainPlotWindow();
|
||||
|
||||
if (fileType != RiaDefines::ECLIPSE_SUMMARY_FILE)
|
||||
{
|
||||
if (mainWindow())
|
||||
{
|
||||
mainWindow()->raise();
|
||||
}
|
||||
}
|
||||
auto plotWindow = getOrCreateMainPlotWindow();
|
||||
plotWindow->show();
|
||||
}
|
||||
|
||||
|
||||
if (!RiaGuiApplication::hasValidProjectFileExtension(fileName))
|
||||
{
|
||||
caf::PdmUiModelChangeDetector::instance()->setModelChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user