Commit 8be917e3 authored by dt_'s avatar dt_ Committed by Alessandro Portale

Remove unneeded code

Change-Id: I334d7e21b09bc07a1ad20c08ca318e5e69d691bb
Reviewed-on: default avatarQt Sanity Bot <>
Reviewed-by: default avatarAlessandro Portale <>
parent afed73f3
......@@ -263,21 +263,6 @@ Core::GeneratedFiles AbstractMobileAppWizard::generateFiles(const QWizard *wizar
return app()->generateFiles(errorMessage);
// TODO remove this workaround:
// SessionManager::projectContainsFile() incorrectly returns false if the
// file name in the .pro file (and thus also in m_projectFileCache)
// contains relative path segments ("../").
inline static QString fileInCurrentProject(const QString &file)
const ProjectExplorer::Project *p = ProjectExplorer::ProjectExplorerPlugin::instance()->currentProject();
QTC_ASSERT(p, return QString(); )
const QStringList filesInProject = p->files(ProjectExplorer::Project::ExcludeGeneratedFiles);
foreach (const QString &uncleanFile, filesInProject)
if (QDir::cleanPath(uncleanFile) == file)
return uncleanFile;
return QString();
bool AbstractMobileAppWizard::postGenerateFiles(const QWizard *w,
const Core::GeneratedFiles &l, QString *errorMessage)
......@@ -293,7 +278,7 @@ bool AbstractMobileAppWizard::postGenerateFiles(const QWizard *w,
success = ProjectExplorer::CustomProjectWizard::postGenerateOpen(l, errorMessage);
if (success) {
const QString fileToOpen = fileInCurrentProject(fileToOpenPostGeneration());
const QString fileToOpen = fileToOpenPostGeneration();
if (!fileToOpen.isEmpty()) {
Core::EditorManager::instance()->openEditor(fileToOpen, QString(), Core::EditorManager::ModeSwitch);
ProjectExplorer::ProjectExplorerPlugin::instance()->setCurrentFile(0, fileToOpen);
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