Save Project Dialog : Early return if no file name is specified in UI

This commit is contained in:
Magne Sjaastad 2019-11-12 15:25:30 +01:00
parent cdb5415f33
commit 2c115278ab

View File

@ -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();