mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Only create and show plot window if we import a summary file. (#9155)
* Only create and show plot window if we import a summary file. If window is already there, no change.
This commit is contained in:
1 parent
3e0cda4dba
commit
82f6dc74c1
1 file changed
+9
-10
@@ -1188,19 +1188,18 @@ void RiaGuiApplication::invokeProcessEvents( QEventLoop::ProcessEventsFlags flag
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaGuiApplication::onFileSuccessfullyLoaded( const QString& fileName, RiaDefines::ImportFileType fileType )
|
||||
{
|
||||
if ( int( fileType ) & int( RiaDefines::ImportFileType::ANY_ECLIPSE_FILE ) )
|
||||
if ( uint( fileType ) & uint( RiaDefines::ImportFileType::ANY_ECLIPSE_FILE ) )
|
||||
{
|
||||
getOrCreateAndShowMainPlotWindow();
|
||||
|
||||
if ( fileType != RiaDefines::ImportFileType::ECLIPSE_SUMMARY_FILE )
|
||||
if ( fileType == RiaDefines::ImportFileType::ECLIPSE_SUMMARY_FILE )
|
||||
{
|
||||
if ( mainWindow() )
|
||||
{
|
||||
mainWindow()->raise();
|
||||
}
|
||||
auto plotWindow = getOrCreateAndShowMainPlotWindow();
|
||||
plotWindow->raise();
|
||||
}
|
||||
else
|
||||
{
|
||||
auto mainWindow = getOrCreateAndShowMainWindow();
|
||||
mainWindow->raise();
|
||||
}
|
||||
auto plotWindow = getOrCreateMainPlotWindow();
|
||||
plotWindow->show();
|
||||
}
|
||||
|
||||
if ( !RiaGuiApplication::hasValidProjectFileExtension( fileName ) )
|
||||
|
||||
Reference in new issue
Block a user