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:
@@ -1292,6 +1292,16 @@ void RiaGuiApplication::onFileSuccessfullyLoaded(const QString& fileName, RiaDef
|
|||||||
if (fileType & RiaDefines::ANY_ECLIPSE_FILE)
|
if (fileType & RiaDefines::ANY_ECLIPSE_FILE)
|
||||||
{
|
{
|
||||||
getOrCreateAndShowMainPlotWindow();
|
getOrCreateAndShowMainPlotWindow();
|
||||||
|
|
||||||
|
if (fileType != RiaDefines::ECLIPSE_SUMMARY_FILE)
|
||||||
|
{
|
||||||
|
if (mainWindow())
|
||||||
|
{
|
||||||
|
mainWindow()->raise();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
auto plotWindow = getOrCreateMainPlotWindow();
|
||||||
|
plotWindow->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!RiaGuiApplication::hasValidProjectFileExtension(fileName))
|
if (!RiaGuiApplication::hasValidProjectFileExtension(fileName))
|
||||||
|
|||||||
Reference in New Issue
Block a user