aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
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 /desktop-widgets
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}