Commit ed0394d4 authored by con's avatar con
Browse files

Fixes: New Project action didn't respect the default project location.

It had old, interfering logic of its own.

Reviewed-by: Tobias Hunger
parent 66d75056
......@@ -909,16 +909,8 @@ void ProjectExplorerPlugin::newProject()
if (debug)
qDebug() << "ProjectExplorerPlugin::newProject";
QString defaultLocation;
if (currentProject()) {
QDir dir(currentProject()->projectDirectory());
dir.cdUp();
defaultLocation = dir.absolutePath();
}
Core::ICore::instance()->showNewItemDialog(tr("New Project", "Title of dialog"),
Core::IWizard::wizardsOfKind(Core::IWizard::ProjectWizard),
defaultLocation);
Core::IWizard::wizardsOfKind(Core::IWizard::ProjectWizard));
updateActions();
}
......
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