]> git.sesse.net Git - nageru/commitdiff
Fix a crash.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 18 Jun 2018 19:38:54 +0000 (21:38 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 18 Jun 2018 19:38:54 +0000 (21:38 +0200)
mainwindow.cpp

index 67f58624d648fb7feff540daa8458fe074333f46..04b4e56275d9e93bcdc37aa7c8e8e3fe6fc3e9c5 100644 (file)
@@ -104,6 +104,10 @@ void MainWindow::cue_out_clicked()
 
 void MainWindow::queue_clicked()
 {
+       if (cliplist_clips->empty()) {
+               return;
+       }
+
        QItemSelectionModel *selected = ui->clip_list->selectionModel();
        if (!selected->hasSelection()) {
                Clip clip = *cliplist_clips->back();