forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user