mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Save Project Dialog : Early return if no file name is specified in UI
This commit is contained in:
1 parent
cdb5415f33
commit
2c115278ab
1 file changed
+5
@@ -80,6 +80,11 @@ void RicSaveProjectFeature::onActionTriggered( bool isChecked )
|
||||
if ( guiApp && !guiApp->isProjectSavedToDisc() )
|
||||
{
|
||||
m_filePath = guiApp->promptForProjectSaveAsFileName();
|
||||
|
||||
if ( m_filePath().isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
auto response = execute();
|
||||
|
||||
Reference in new issue
Block a user