From 48cbd81a2c674b7d65a82f986ed7ad12e2f6869f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 20 Oct 2026 11:39:21 +0200 Subject: Packages tab: a click anywhere on a row ticks or unticks it Same as the Hints tab: the box is no longer user-checkable on its own and one clicked handler toggles the row, so no click counts twice. Co-Authored-By: Claude Opus 5.5 --- tests/test_gui.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test_gui.py b/tests/test_gui.py index 8353441..b326ee1 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -399,6 +399,10 @@ class SmokeTest(unittest.TestCase): tab.start_requested.connect(started.append) tab.act("update") self.assertEqual(started, []) # nothing checked, no current row + tab.table.clicked.emit(tab.proxy.index(3, 2)) # a click on a row's values ticks it + self.assertEqual(tab.model.checked, {"curl"}) + tab.table.clicked.emit(tab.proxy.index(3, 0)) + self.assertEqual(tab.model.checked, set()) tab.table.setCurrentIndex(tab.proxy.index(1, 1)) self.assertIn("x", tab.detail.text()) tab.act("update") -- cgit v1.2.3