mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Save Project Dialog : Early return if no file name is specified in UI
This commit is contained in:
parent
cdb5415f33
commit
2c115278ab
@ -80,6 +80,11 @@ void RicSaveProjectFeature::onActionTriggered( bool isChecked )
|
|||||||
if ( guiApp && !guiApp->isProjectSavedToDisc() )
|
if ( guiApp && !guiApp->isProjectSavedToDisc() )
|
||||||
{
|
{
|
||||||
m_filePath = guiApp->promptForProjectSaveAsFileName();
|
m_filePath = guiApp->promptForProjectSaveAsFileName();
|
||||||
|
|
||||||
|
if ( m_filePath().isEmpty() )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto response = execute();
|
auto response = execute();
|
||||||
|
Loading…
Reference in New Issue
Block a user