forked from qt-creator/qt-creator
Core: Add FilePath based overloads to EditorManager::openEditor{,at}
Part of the overall FilePath migration. Keep the original version for a while to allow using code to catch up. Change-Id: Ia7c5ea14416a06e679e8661c0e4045981db87b9b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -514,7 +514,7 @@ void JsonWizard::openProjectForNode(Node *node)
|
||||
|
||||
Utils::optional<FilePath> projFilePath = projNode->visibleAfterAddFileAction();
|
||||
|
||||
if (projFilePath && !Core::EditorManager::openEditor(projFilePath.value().toString())) {
|
||||
if (projFilePath && !Core::EditorManager::openEditor(projFilePath.value())) {
|
||||
auto errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard",
|
||||
"Failed to open an editor for \"%1\".")
|
||||
.arg(QDir::toNativeSeparators(projFilePath.value().toString()));
|
||||
|
||||
Reference in New Issue
Block a user