summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-07-22 12:18:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-07-23 10:20:50 -0700
commit8ac0519a9954b58f43bc42dd70c5643169543999 (patch)
tree96d8f2c519ad4d18860bf8b43ebc5679cfb01f17
parentc7a2d9561730613ebec1230f129b64ca6168a56f (diff)
downloadsubsurface-8ac0519a9954b58f43bc42dd70c5643169543999.tar.gz
desktop: explicitly enable shortcuts
The changes in commit 4daf687876 ("profile: remove [disable|enable]Shortcuts() signals") resulted in us no longer enabling the shortcuts on the desktop (at least on macOS where I debugged this). This placement of the call feels like a bit of overkill, but at least it shouldn't be wrong. Fixes #3293 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--CHANGELOG.md1
-rw-r--r--desktop-widgets/mainwindow.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0ba284890..b5a5c3ead 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,4 @@
+- fix broken curser left/right shortcut for showing multiple dive computers
---
* Always add new entries at the very top of this file above other existing entries and this note.
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 35140ffbf..d5fa59235 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -374,6 +374,7 @@ void MainWindow::enableDisableCloudActions()
void MainWindow::enableDisableOtherDCsActions()
{
bool nr = number_of_computers(current_dive) > 1;
+ enableShortcuts();
ui.actionNextDC->setEnabled(nr);
ui.actionPreviousDC->setEnabled(nr);
}