mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 22:15:13 +00:00
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:
parent
c7a2d95617
commit
8ac0519a99
2 changed files with 2 additions and 0 deletions
|
@ -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.
|
* Always add new entries at the very top of this file above other existing entries and this note.
|
||||||
|
|
|
@ -374,6 +374,7 @@ void MainWindow::enableDisableCloudActions()
|
||||||
void MainWindow::enableDisableOtherDCsActions()
|
void MainWindow::enableDisableOtherDCsActions()
|
||||||
{
|
{
|
||||||
bool nr = number_of_computers(current_dive) > 1;
|
bool nr = number_of_computers(current_dive) > 1;
|
||||||
|
enableShortcuts();
|
||||||
ui.actionNextDC->setEnabled(nr);
|
ui.actionNextDC->setEnabled(nr);
|
||||||
ui.actionPreviousDC->setEnabled(nr);
|
ui.actionPreviousDC->setEnabled(nr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue