Added 'bool stopPlayback' parameter to MainWindow::mayChangeProject() to preserve old behavior outside of 'Open project dialog' case; fixes #1384

This commit is contained in:
Christopher L. Simons
2015-03-10 07:41:13 -04:00
parent 393eacad7d
commit 95c7d72a90
4 changed files with 15 additions and 10 deletions

View File

@@ -69,10 +69,12 @@ public:
/// opens another file...) must call this before and may only proceed if
/// this function returns true.
///
/// \param stopPlayback whether playback should be stopped upon prompting. If set to false, the caller should ensure that Engine::getSong()->stop() is called before unloading/loading a song.
///
/// \return true if the user allows the software to proceed, false if they
/// cancel the action.
///
bool mayChangeProject();
bool mayChangeProject(bool stopPlayback);
void clearKeyModifiers();