From 020a2721a6537ffecc82a26c097da64551571617 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 22 Oct 2018 00:38:19 +0200 Subject: [PATCH] Only adjust pts with the wheel if the given row is selected. It is just too easy to mess up when you want to scroll otherwise. --- mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index a483dc1..6e999ba 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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:"; -- 2.39.2