fix: Ctrl+click in scan results now seeks to the clicked row

Was using selectedItems()[0] which always returns the first item in
the selection, not the most recently clicked one. Changed to
currentItem() which tracks the last clicked row.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 11:21:50 +02:00
parent 0f6ae88ea6
commit 24db32c09f
+3 -4
View File
@@ -973,10 +973,9 @@ class ScanResultsPanel(QWidget):
return ""
def _on_selection_changed(self, table: QTableWidget) -> None:
items = table.selectedItems()
if items:
row = items[0].row()
start = table.item(row, 0).data(Qt.ItemDataRole.UserRole + 1)
cur = table.currentItem()
if cur is not None:
start = table.item(cur.row(), 0).data(Qt.ItemDataRole.UserRole + 1)
if start is not None:
self.seek_requested.emit(float(start))