Remove GUI related code from Song::stop

Add the new signal Song::stopped which is emitted when the song is
stopped. Connect the new slot method MainWindow::onSongStopped to that
signal. Remove all GUI updates from Song::stop and handle them in
MainWindow::onSongStopped.
This commit is contained in:
Michael Gregorius
2017-12-10 00:14:57 +01:00
parent 7fa62266a9
commit 07caf85bf5
4 changed files with 43 additions and 15 deletions

View File

@@ -252,7 +252,7 @@ private slots:
void onExportProject();
void onExportProjectTracks();
void onImportProject();
void onSongStopped();
signals:
void periodicUpdate();

View File

@@ -428,7 +428,7 @@ signals:
void controllerAdded( Controller * );
void controllerRemoved( Controller * );
void updateSampleTracks();
void stopped();
} ;