Skip to content
Snippets Groups Projects
Commit 65c1be9b authored by Yuchen Deng's avatar Yuchen Deng Committed by Eike Ziller
Browse files

WelcomePage: Use project directory instead of home path


In copyToAlternativeLocation function, project directory is better than
home path. at least, It's more clear.

Change-Id: I38faa6aedcda02459f5d4715c35fb0e2e64dd0f6
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent eb3a79a7
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@
#include <coreplugin/coreconstants.h>
#include <coreplugin/coreplugin.h>
#include <coreplugin/documentmanager.h>
#include <coreplugin/icore.h>
#include <coreplugin/helpmanager.h>
#include <coreplugin/modemanager.h>
......@@ -339,8 +340,8 @@ QString ExamplesWelcomePage::copyToAlternativeLocation(const QFileInfo& proFileI
txt->setBuddy(chooser);
chooser->setExpectedKind(Utils::PathChooser::ExistingDirectory);
QSettings *settings = Core::ICore::settings();
chooser->setPath(settings->value(
QString::fromLatin1(C_FALLBACK_ROOT), QDir::homePath()).toString());
chooser->setPath(settings->value(QString::fromLatin1(C_FALLBACK_ROOT),
Core::DocumentManager::projectsDirectory()).toString());
lay->addWidget(txt, 1, 0);
lay->addWidget(chooser, 1, 1);
QDialogButtonBox *bb = new QDialogButtonBox;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment