]> git.sesse.net Git - nageru/commitdiff
Fix an issue where the stop button would be disabled too soon.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 28 Dec 2018 11:34:07 +0000 (12:34 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 28 Dec 2018 11:34:07 +0000 (12:34 +0100)
futatabi/mainwindow.cpp

index bbaa5a417ab8c9c636d76f324f3b396e7ef236b4..70402cc3513d85f6d596e9d671b8c9904ad0c113 100644 (file)
@@ -516,11 +516,11 @@ void MainWindow::live_player_clip_done()
                set_output_status("paused");
                playlist_clips->set_progress({});
                playlist_clips->set_currently_playing(-1, 0.0f);
+               ui->stop_btn->setEnabled(false);
        } else {
                playlist_clips->set_progress({ { row + 1, 0.0f } });
                playlist_clips->set_currently_playing(row + 1, 0.0f);
        }
-       ui->stop_btn->setEnabled(false);
 }
 
 pair<Clip, size_t> MainWindow::live_player_get_next_clip()