Skip to content
  • David Hallas's avatar
    Fix missing setDefaultShortcuts call · c71c1c94
    David Hallas authored
    Summary:
    The commit eec49bc3 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
    c71c1c94