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

It had old, interfering logic of its own.

Reviewed-by: Tobias Hunger
This commit is contained in:
con
2010-07-26 11:46:26 +02:00
parent 66d75056ae
commit ed0394d452

View File

@@ -909,16 +909,8 @@ void ProjectExplorerPlugin::newProject()
if (debug) if (debug)
qDebug() << "ProjectExplorerPlugin::newProject"; 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::ICore::instance()->showNewItemDialog(tr("New Project", "Title of dialog"),
Core::IWizard::wizardsOfKind(Core::IWizard::ProjectWizard), Core::IWizard::wizardsOfKind(Core::IWizard::ProjectWizard));
defaultLocation);
updateActions(); updateActions();
} }