mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06: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:
@@ -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