TextEditor: Update actions after toggling read only mode.

Task-number: QTCREATORBUG-9188

Change-Id: I3448645397e7a39487f2e961728ebef924eec7f6
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
David Schulz
2013-10-30 09:27:32 +01:00
parent 0dbaac7bcf
commit 88c647ce68
3 changed files with 3 additions and 0 deletions

View File

@@ -122,6 +122,7 @@ void TextEditorActionHandler::setupActions(BaseTextEditorWidget *editor)
QObject::connect(editor, SIGNAL(undoAvailable(bool)), this, SLOT(updateUndoAction()));
QObject::connect(editor, SIGNAL(redoAvailable(bool)), this, SLOT(updateRedoAction()));
QObject::connect(editor, SIGNAL(copyAvailable(bool)), this, SLOT(updateCopyAction()));
QObject::connect(editor, SIGNAL(readOnlyChanged()), this, SLOT(updateActions()));
}