Commit 7c706b78 authored by Daniel Teske's avatar Daniel Teske

ProjectExplorerTree: Fix node not being selected

Task-number: QTCREATORBUG-11782
Change-Id: Ib37a4801b15a7420dedbb3e504fa1d25adc75912
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent a6f12b35
......@@ -40,6 +40,7 @@
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/targetsetuppage.h>
#include <projectexplorer/customwizard/customwizard.h>
#include <projectexplorer/session.h>
#include <coreplugin/editormanager/editormanager.h>
using namespace ProjectExplorer;
......@@ -139,7 +140,9 @@ bool AbstractMobileAppWizard::postGenerateFiles(const QWizard *w,
const QString fileToOpen = fileToOpenPostGeneration();
if (!fileToOpen.isEmpty()) {
Core::EditorManager::openEditor(fileToOpen);
ProjectExplorer::ProjectExplorerPlugin::instance()->setCurrentFile(0, fileToOpen);
ProjectExplorer::ProjectExplorerPlugin *pe = ProjectExplorer::ProjectExplorerPlugin::instance();
ProjectExplorer::Project *project = ProjectExplorer::SessionManager::projectForFile(fileToOpen);
pe->setCurrentFile(project, fileToOpen);
}
}
return success;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment