Fix shortcut config changes sometimes not updating until restart

Authored by muhlenpfordt on Apr 7 2018, 4:25 PM.

Description

Fix shortcut config changes sometimes not updating until restart

Summary:
After setting or resetting custom shortcuts for actions in Browse or
Start Page Mode and then switching to View Mode these changes are not
active until next Gwenview restart.
This patch adds a refreshActionProperties() call after the shortcut
config dialog is closed to fix this.

BUG: 389331
FIXED-IN: 18.04.0

Test Plan:

  • Start Gwenview in Browse Mode or Start Page Mode
  • SettingsConfigure Shortcuts...
  • Set custom shortcut for Quit to e.g.
  • Switch to View Mode displaying any image
  • should quit Gwenview
  • Restart Gwenview in Browse Mode or Start Page Mode
  • SettingsConfigure Shortcuts...
  • Reset shortcuts with Defaults
  • Switch to View Mode displaying any image
  • Ctrl+Q should quit Gwenview

Reviewers: Gwenview, rkflx

Reviewed By: Gwenview, rkflx

Subscribers: rkflx, huoni

Differential Revision: https://phabricator.kde.org/D12023

Details

Committed
muhlenpfordtApr 9 2018, 7:41 AM
Reviewer
Gwenview
Differential Revision
D12023: Fix shortcut config changes sometimes not updating until restart
Parents
R260:f78e5e4b05b7: Fix thumbnail update after undo
Branches
Unknown
Tags
Unknown