forked from qt-creator/qt-creator
VCS/Diff editors: Set readonly attributes correctly.
Make VCS-generated editors read-only, enable editing when opening a patch. Make VCS-Editor non-read-only by default, add setter for "Forced read-only" that makes it a temporary, read-only file. Task-number: QTCREATORBUG-1528 Reviewed-by: Thorbjorn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
@@ -586,6 +586,7 @@ VCSBase::VCSBaseEditor *MercurialClient::createVCSEditor(const QString &kind, QS
|
||||
}
|
||||
|
||||
core->editorManager()->activateEditor(outputEditor);
|
||||
baseEditor->setForceReadOnly(true);
|
||||
return baseEditor;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user