forked from qt-creator/qt-creator
Move displayName from IEditor to IDocument
The display name is not editor instance specific, but belongs to the document. Change-Id: I3c936f04a86e10e6ca30063d85036d85b4b5880e Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -382,7 +382,7 @@ void CodepasterPlugin::finishFetch(const QString &titleDescription,
|
||||
// Open editor with title.
|
||||
Core::IEditor *editor = EditorManager::openEditor(fileName);
|
||||
QTC_ASSERT(editor, return);
|
||||
editor->setDisplayName(titleDescription);
|
||||
editor->document()->setDisplayName(titleDescription);
|
||||
}
|
||||
|
||||
CodepasterPlugin *CodepasterPlugin::instance()
|
||||
|
||||
Reference in New Issue
Block a user