Bug 411492 - Keyboard shortcuts do not get updated if multiple okular windows open
Summary: Keyboard shortcuts do not get updated if multiple okular windows open
Status: ASSIGNED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.6.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-01 11:07 UTC by Ekanshdeep Gupta
Modified: 2020-09-30 16:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ekanshdeep Gupta 2019-09-01 11:07:39 UTC
If I have multiple Okular windows open (with different documents suppose), and I make some modification to a keyboard shortcut, it will not be saved. I will be able to use it once; after that the shortcut keybinding will be removed.


STEPS TO REPRODUCE
1. Open multiple Okular windows.
2. Assign a new keyboard shortcut (for instance, Toggle Change Colors).
3. Click Ok, and use the keyboard shortcut.
4. It will work once, but not after that.

OBSERVED RESULT
Going back to the Configure Shortcuts dialog box will reveal that the shortcut keybinding has been removed, and the change I made earlier has been reverted.

EXPECTED RESULT
The shortcut should stay since I saved it.

If I close the additional Okular windows and try to set a shortcut, it saves and works as expected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 30
(available in About System)
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Comment 1 David Hurka 2019-09-02 15:39:05 UTC
This sounds very similar to a known issue with shortcuts in Okular, just that it usually also doesn’t work when there is only one window.

What happens when you close the window in which you made the configuration / the other window, and open a new Okular?
Comment 2 Bug Janitor Service 2020-08-23 17:46:34 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/251
Comment 3 Bug Janitor Service 2020-09-30 16:06:12 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/290