mirror of
https://github.com/KDE/konsole.git
synced 2026-06-19 11:19:22 -04:00
Correct method of making shortcuts work with hidden menu bar, now possible with kdelibs changes.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=693130
This commit is contained in:
@@ -85,18 +85,9 @@ SessionController::SessionController(Session* session , TerminalDisplay* view, Q
|
||||
|
||||
// handle user interface related to session (menus etc.)
|
||||
setXMLFile("konsole/sessionui.rc");
|
||||
actionCollection()->setAssociatedWidget(view);
|
||||
setupActions();
|
||||
|
||||
// add all actions to this window, so that the keyboard shortcuts can be
|
||||
// used even when the main window's menu is hidden
|
||||
//
|
||||
// TODO: The Qt-4 behaviour of shortcuts not working when the menu bar is hidden
|
||||
// affects other KDE applications as well. A kdelibs fix might be possible.
|
||||
//
|
||||
// See discussion:
|
||||
// http://lists.kde.org/?l=konsole-devel&m=118529209602516&w=2
|
||||
view->addActions(actionCollection()->actions());
|
||||
|
||||
setIdentifier(_session->sessionId());
|
||||
sessionTitleChanged();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user