From 4eb8ed1b29685a10b56f213c4fc6aca440c00601 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 21 Sep 2018 12:16:42 -0700 Subject: Desktop/remember DCs: hook up the shortcut buttons The straight forward code to update the currentIndex of the combobox doesn't appear to work on macOS (but works fine on Linux). Calling the event loop and then calling update afterwards seems very unintuitive, but it appears to fix the issue in my testing. Signed-off-by: Dirk Hohndel --- desktop-widgets/downloadfromdivecomputer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'desktop-widgets/downloadfromdivecomputer.h') diff --git a/desktop-widgets/downloadfromdivecomputer.h b/desktop-widgets/downloadfromdivecomputer.h index f9cc83e64..78e2923ce 100644 --- a/desktop-widgets/downloadfromdivecomputer.h +++ b/desktop-widgets/downloadfromdivecomputer.h @@ -50,6 +50,11 @@ slots: void checkDumpFile(int state); void pickDumpFile(); void pickLogFile(); + void DC1Clicked(); + void DC2Clicked(); + void DC3Clicked(); + void DC4Clicked(); + #if defined(BT_SUPPORT) void enableBluetoothMode(int state); void selectRemoteBluetoothDevice(); -- cgit v1.2.3-70-g09d2