]> git.sesse.net Git - nageru/commitdiff
Be more lenient about the playlist focus; this was too much (we should at least be...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 26 Feb 2019 23:33:19 +0000 (00:33 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 26 Feb 2019 23:33:19 +0000 (00:33 +0100)
futatabi/mainwindow.cpp

index fa93a7b458fe4982f3efd6f0f258ee7d78ebf036..9b6b47845a46b62b2549eeb2dddd71c127f6ecd0 100644 (file)
@@ -972,7 +972,7 @@ void MainWindow::playlist_selection_changed()
        enable_or_disable_preview_button();
 
        QItemSelectionModel *selected = ui->playlist->selectionModel();
-       bool any_selected = ui->playlist->hasFocus() && selected->hasSelection();
+       bool any_selected = selected->hasSelection();
        ui->playlist_duplicate_btn->setEnabled(any_selected);
        ui->playlist_remove_btn->setEnabled(any_selected);
        ui->playlist_move_up_btn->setEnabled(