Commit e42eb66f authored by Tobias Hunger's avatar Tobias Hunger
Browse files

JsonProjectPage: Pick right directory

Pick the correct directory when the wizard is started via the context
menu of an project node.

Change-Id: Ib2ebba5f796381217673c9030a7b279b6d764a59
Reviewed-by: default avatarDaniel Teske <>
parent b9d2fd8e
......@@ -32,6 +32,8 @@
#include <coreplugin/documentmanager.h>
#include <utils/qtcassert.h>
#include <QDir>
#include <QVariant>
......@@ -43,12 +45,9 @@ JsonProjectPage::JsonProjectPage(QWidget *parent) :
void JsonProjectPage::initializePage()
if (Core::DocumentManager::useProjectsDirectory()) {
} else {
if (JsonWizard *wiz = qobject_cast<JsonWizard *>(wizard()))
JsonWizard *wiz = qobject_cast<JsonWizard *>(wizard());
QTC_ASSERT(wiz, return);
Supports Markdown
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