]> cloud.milkyroute.net Git - dolphin.git/commit
Fix missing setDefaultShortcuts call
authorDavid Hallas <david@davidhallas.dk>
Tue, 1 Oct 2019 15:24:53 +0000 (17:24 +0200)
committerDavid Hallas <david@davidhallas.dk>
Thu, 3 Oct 2019 03:40:10 +0000 (05:40 +0200)
commitc71c1c94be2e5ab2e14162a15780d4d12bee307b
treef57dfd9333286b2b51eade773fa5abeb5a0c6552
parent43ea7052e15b1cb917bcc6cd2bd3a8046179e45c
Fix missing setDefaultShortcuts call

Summary:
The commit eec49bc38f4e256b66bf16ee5428c5f5d7e97e25 cased a warning to
be emitted when starting Dolphin:

KXMLGUIFactoryPrivate::saveDefaultActionProperties(): Shortcut for action  "go_forward" "&Forward" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.

The fix is to call
actionCollection()->setDefaultShortcuts(m_forwardAction, m_forwardAction->shortcuts());
so that the default shortcuts are setup.

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24342
src/dolphinmainwindow.cpp