Fix tab-specific actions (eg. Copy, Paste) not appearing in Configure Shortcuts dialog.

Add action collection for current controller to dialog before showing and reload UI
for other controllers after the dialog is accepted.

There is a known bug at the moment where changing a shortcut from a custom value to
the default shortcut only updates the current tab and tabs created after the change.
This is a kdelibs issue being looked into.

BUG: 161021
BACKPORT: 4.1

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=837726
This commit is contained in:
Robert Knight
2008-07-25 15:05:05 +00:00
parent 8f5f805112
commit 39a84903df
3 changed files with 27 additions and 6 deletions

View File

@@ -67,6 +67,7 @@ using namespace Konsole;
KIcon SessionController::_activityIcon;
KIcon SessionController::_silenceIcon;
QSet<SessionController*> SessionController::_allControllers;
QPointer<SearchHistoryThread> SearchHistoryTask::_thread;
int SessionController::_lastControllerId;
@@ -89,6 +90,8 @@ SessionController::SessionController(Session* session , TerminalDisplay* view, Q
, _listenForScreenWindowUpdates(false)
, _preventClose(false)
{
_allControllers.insert(this);
Q_ASSERT( session );
Q_ASSERT( view );
@@ -170,6 +173,8 @@ SessionController::~SessionController()
{
if ( _view )
_view->setScreenWindow(0);
_allControllers.remove(this);
}
void SessionController::trackOutput(QKeyEvent* event)
{