mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5792 Python : Do not show file selection dialog in console mode
This commit is contained in:
committed by
Gaute Lindkvist
parent
bf044d52b3
commit
82ed7bbc81
@@ -183,6 +183,12 @@ bool RicImportSummaryCasesFeature::createSummaryCasesFromFiles( const QStringLis
|
|||||||
if ( !sumCaseColl ) return false;
|
if ( !sumCaseColl ) return false;
|
||||||
|
|
||||||
RifSummaryCaseRestartSelector fileSelector;
|
RifSummaryCaseRestartSelector fileSelector;
|
||||||
|
|
||||||
|
if ( !RiaGuiApplication::isRunning() )
|
||||||
|
{
|
||||||
|
fileSelector.showDialog( false );
|
||||||
|
}
|
||||||
|
|
||||||
fileSelector.setEnsembleOrGroupMode( ensembleOrGroup );
|
fileSelector.setEnsembleOrGroupMode( ensembleOrGroup );
|
||||||
fileSelector.determineFilesToImportFromSummaryFiles( fileNames );
|
fileSelector.determineFilesToImportFromSummaryFiles( fileNames );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user