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:
@@ -188,7 +188,7 @@ bool BaseFileWizardFactory::postGenerateOpenEditors(const GeneratedFiles &l, QSt
|
||||
{
|
||||
foreach (const GeneratedFile &file, l) {
|
||||
if (file.attributes() & GeneratedFile::OpenEditorAttribute) {
|
||||
if (!EditorManager::openEditor(file.path(), file.editorId())) {
|
||||
if (!EditorManager::openEditor(FilePath::fromString(file.path()), file.editorId())) {
|
||||
if (errorMessage)
|
||||
*errorMessage = tr("Failed to open an editor for \"%1\".").arg(QDir::toNativeSeparators(file.path()));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user