Bug 462615 - Use KActionCollection::setDefaultShortcut(s) instead
Summary: Use KActionCollection::setDefaultShortcut(s) instead
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: master
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-03 22:22 UTC by ratijas
Modified: 2024-02-22 19:23 UTC (History)
12 users (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 ratijas 2022-12-03 22:22:43 UTC
SUMMARY

When launching Konsole from a terminal, I see these messages on output:

kf.xmlgui: Shortcut for action  "" "Show SSH Manager" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.xmlgui: Shortcut for action  "" "Show Quick Commands" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.

STEPS TO REPRODUCE
1. Open up a terminal, it can be a Konsole instance too.
2. Run `konsole`

OBSERVED RESULT

Those warning messages appear.

EXPECTED RESULT

There should be no warnings, of course.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: git-master
Qt Version: 5.15.7
Kernel Version: 6.0.10-arch2-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: G752VT
System Version: 1.0
Comment 1 Nathan Price 2022-12-14 22:35:59 UTC
I have the same issue. 


Operating System: Arch Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.12-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 13.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C91
System Version: 1.0
Comment 2 Ben Guy-Williams 2022-12-27 11:11:42 UTC
```
Dec 27 18:08:42 konsole[1947]: kf.xmlgui: Shortcut for action  "" "Show Quick Commands" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Dec 27 18:08:42 konsole[1947]: kf.xmlgui: Shortcut for action  "" "Show SSH Manager" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
```
Comment 3 Garry Williams 2023-01-05 18:00:25 UTC
Confirmed.

Kernel: 6.0.17-300.fc37.x86_64
X11
qt5-qtbase-common-5.15.7-1.fc37.noarch
konsole5-22.12.0-1.fc37.x86_64
VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa XT [Radeon PRO WX 2100]

konsole[3611]: kf.xmlgui: Shortcut for action  "" "Show Quick Commands" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
konsole[3611]: kf.xmlgui: Shortcut for action  "" "Show SSH Manager" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.

Interestingly, my laptop (Dell XPS-13) doesn't exhibit the same bug.  It has exactly the same versions of everything and is also running X11 graphics.  Its graphics adapter: VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)

Let me know, if I can provide any other information.
Comment 4 lycan 2023-01-14 10:46:46 UTC
same here `$ uname -a -> Linux 6.1.5-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Jan 12 15:19:12 UTC 2023 x86_64 GNU/Linux`
```
ene 14 11:38:54 alex-b450aoruselite konsole[134444]: kf.xmlgui: Shortcut for action  "" "Mostrar el gestor de SSH" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
ene 14 11:38:54 alex-b450aoruselite konsole[134444]: kf.xmlgui: Shortcut for action  "" "Mostrar las órdenes rápidas" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
```
Comment 5 shamim.islam@gmail.com 2023-03-05 00:04:25 UTC
Confirmed. Same problem.
Comment 6 antoinelormeau 2023-04-13 16:39:57 UTC
I have the same issue. Error message appears in journal as well when launching konsole anywhere (tested taskbar shortcut and rofi launcher).

avril 13 18:27:13  konsole[10561]: kf.xmlgui: Shortcut for action  "" "Afficher les commandes rapides" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
avril 13 18:27:13  konsole[10561]: kf.xmlgui: Shortcut for action  "" "Afficher le gestionnaire de clés SSH" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
avril 13 18:27:13  systemd[738]: Started Konsole - Terminal.
avril 13 18:27:13  plasmashell[853]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:286: Unable to assign [undefined] to QString
avril 13 18:27:13  plasmashell[853]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:286: Unable to assign [undefined] to QString




konsole 22.12.3-1
kde plasma 5.27.4
kde frameworks 5.105.0
qt 5.15.9
kernel 6.2.10-arch1-1
X11
Comment 7 antoinelormeau 2023-04-13 16:41:07 UTC
I should add as well that sometimes konsole freeze the system entirely when launched, maybe this is linked.
Comment 8 Bug Janitor Service 2023-06-05 14:11:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/857
Comment 9 Kurt Hindenburg 2023-06-06 21:28:31 UTC
Git commit c80d012773ca9d2b4a790226976c3e7b4fcd4af8 by Kurt Hindenburg, on behalf of Theodore Wang.
Committed on 06/06/2023 at 21:28.
Pushed by hindenburg into branch 'master'.

Eliminate compilation warnings for plugins from using QAction::setShortcut(s)

Replaced QAction::setShortcut(s) with KActionCollection::setDefaultShortcut(s)
to eliminate compilation warnings

M  +4    -4    src/plugins/QuickCommands/quickcommandsplugin.cpp
M  +4    -4    src/plugins/SSHManager/sshmanagerplugin.cpp

https://invent.kde.org/utilities/konsole/-/commit/c80d012773ca9d2b4a790226976c3e7b4fcd4af8
Comment 10 Garry Williams 2023-10-08 17:50:05 UTC
I just upgraded to konsole5-23.08.1-1.fc38.x86_64 and this release fixes the problem.
Comment 11 xxmlud 2024-02-22 19:23:53 UTC
New bug: 481695