mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-04 14:23:27 -04:00
Quit exit if failing to save project (#4428)
* Quit exiting when failing to save project *Test outcome of save in MainWindow::saveProjectAsNewVersion()
This commit is contained in:
@@ -943,15 +943,15 @@ bool MainWindow::saveProject()
|
||||
{
|
||||
return( saveProjectAs() );
|
||||
}
|
||||
else
|
||||
else if( Engine::getSong()->guiSaveProject() )
|
||||
{
|
||||
Engine::getSong()->guiSaveProject();
|
||||
if( getSession() == Recover )
|
||||
{
|
||||
sessionCleanup();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return( true );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -997,14 +997,16 @@ bool MainWindow::saveProjectAs()
|
||||
}
|
||||
}
|
||||
}
|
||||
Engine::getSong()->guiSaveProjectAs( fname );
|
||||
if( getSession() == Recover )
|
||||
if( Engine::getSong()->guiSaveProjectAs( fname ) )
|
||||
{
|
||||
sessionCleanup();
|
||||
if( getSession() == Recover )
|
||||
{
|
||||
sessionCleanup();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return( true );
|
||||
}
|
||||
return( false );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1022,8 +1024,7 @@ bool MainWindow::saveProjectAsNewVersion()
|
||||
do VersionedSaveDialog::changeFileNameVersion( fileName, true );
|
||||
while ( QFile( fileName ).exists() );
|
||||
|
||||
Engine::getSong()->guiSaveProjectAs( fileName );
|
||||
return true;
|
||||
return Engine::getSong()->guiSaveProjectAs( fileName );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user