Merge pull request #4084 from paperbagcorner/fix-stopafter

Target the active playlist when setting 'Stop after this track' via glob...
This commit is contained in:
David Sansome 2014-01-08 17:52:33 -08:00
commit 662dc8ab50

View File

@ -1062,8 +1062,8 @@ void MainWindow::ToggleShowHide() {
} }
void MainWindow::StopAfterCurrent() { void MainWindow::StopAfterCurrent() {
app_->playlist_manager()->current()->StopAfter(app_->playlist_manager()->current()->current_row()); app_->playlist_manager()->active()->StopAfter(app_->playlist_manager()->active()->current_row());
emit StopAfterToggled(app_->playlist_manager()->current()->stop_after_current()); emit StopAfterToggled(app_->playlist_manager()->active()->stop_after_current());
} }
void MainWindow::closeEvent(QCloseEvent* event) { void MainWindow::closeEvent(QCloseEvent* event) {