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>
This commit is contained in:
Dirk Hohndel 2021-07-22 12:18:45 -07:00
parent c7a2d95617
commit 8ac0519a99
2 changed files with 2 additions and 0 deletions

View file

@ -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.

View file

@ -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);
}