forked from qt-creator/qt-creator
EditorManager: Remove QString openEditor(At) overloads
In favor of the FilePath/Link ones. Change-Id: I5caf9e0f8de304ff4ee12329557aa50a6f3a0c69 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -400,10 +400,10 @@ void CodePasterPluginPrivate::finishFetch(const QString &titleDescription,
|
||||
MessageManager::writeDisrupting(saver.errorString());
|
||||
return;
|
||||
}
|
||||
const QString fileName = saver.filePath().toString();
|
||||
m_fetchedSnippets.push_back(fileName);
|
||||
const Utils::FilePath filePath = saver.filePath();
|
||||
m_fetchedSnippets.push_back(filePath.toString());
|
||||
// Open editor with title.
|
||||
IEditor *editor = EditorManager::openEditor(fileName);
|
||||
IEditor *editor = EditorManager::openEditor(filePath);
|
||||
QTC_ASSERT(editor, return);
|
||||
editor->document()->setPreferredDisplayName(titleDescription);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user