mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Save Project Dialog : Early return if no file name is specified in UI
This commit is contained in:
@@ -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