[okular] [Bug 456107] New: Main toolbar keyboard shortcut throwing an error.

hugh bugzilla_noreply at kde.org
Wed Jun 29 04:23:46 BST 2022


https://bugs.kde.org/show_bug.cgi?id=456107

            Bug ID: 456107
           Summary: Main toolbar keyboard shortcut throwing an error.
           Product: okular
           Version: 22.04.2
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: hugh.garse at tutamail.com
  Target Milestone: ---

SUMMARY

Setup keyboard shortcuts for visibility of okular sidebar and the okular main
toolbar within the okular settings.  Both are unique and don't clash with any
other keyboard shortcuts.

Don't show sidebar and main toolbar on application startup.

Show main toolbar using shortcut, which works fine, until the sidebar shortcut
is used.

Now the main toolbar keyboard shortcut stops working.  The following error is
shown each time it is pressed:

kf.xmlgui: Shortcut for action  "mainToolBar" "Show Toolbar" set with
QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead

As soon as the side bar shortcut key is hit the main toolbar shortcut key stops
working.

Only fix is an application restart.

STEPS TO REPRODUCE

1. Set main toolbar keyboard shortcut to "t".
2. Set sidebar keyboard shortcut to "s".
3. Hide both on application start.
4. Open a document in okular, I'm using a pdf.
5. Hit "t" to show the main toolbar.
6. Hit "s" to show the sidebar.
7. Hit "t" to hide the main toolbar.

OBSERVED RESULT

Main toolbar keyboard shortcuts stops working.

The following error message is output:

kf.xmlgui: Shortcut for action  "mainToolBar" "Show Toolbar" set with
QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead

Open Okular keyboard shortcut settings and the main toolbar shortcut is not
set.

Add it back, use sidebar shortcut, and it is missing again.

Restarting the application and it is back, until sidebar shortcut is used, the
gone again.

Strange.

EXPECTED RESULT

The main toolbar keyboard shortcut continue to work after the sidebar keyboard
shortcuts has been used.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95
Qt Version: 5.15.5

ADDITIONAL INFORMATION

Okular package version: 22.04.2-3

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list