Enable copy action only when some text are selected.

FEATURE: 203768
FIXED-IN: 4.8
This commit is contained in:
Jekyll Wu
2011-08-27 00:56:14 +08:00
parent 0ddf722e08
commit f5772ab06b
7 changed files with 57 additions and 0 deletions

View File

@@ -522,6 +522,8 @@ SessionController* ViewManager::createController(Session* session , TerminalDisp
connect( session , SIGNAL(destroyed()) , controller , SLOT(deleteLater()) );
connect( session , SIGNAL(primaryScreenInUse(bool)) ,
controller , SLOT(setupPrimaryScreenSpecificActions(bool)) );
connect( session , SIGNAL(selectedText(QString)) ,
controller , SLOT(updateCopyAction(QString)) );
connect( view , SIGNAL(destroyed()) , controller , SLOT(deleteLater()) );
// if this is the first controller created then set it as the active controller