]> git.sesse.net Git - nageru/commitdiff
Only adjust pts with the wheel if the given row is selected. It is just too easy...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Oct 2018 22:38:19 +0000 (00:38 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Oct 2018 22:38:19 +0000 (00:38 +0200)
mainwindow.cpp

index a483dc17a4b1d1ca86370bcfd3b90372e1127c79..6e999bad4ba653253c81b54073879d7fc87e06c0 100644 (file)
@@ -551,6 +551,12 @@ bool MainWindow::eventFilter(QObject *watched, QEvent *event)
                int row = destination->rowAt(wheel->y());
                if (column == -1 || row == -1) return false;
 
+               // Only adjust pts with the wheel if the given row is selected.
+               if (!destination->hasFocus() ||
+                   row != destination->selectionModel()->currentIndex().row()) {
+                       return false;
+               }
+
                currently_deferring_model_changes = true;
                {
                        current_change_id = (watched == ui->clip_list->viewport()) ? "cliplist:" : "playlist:";