forked from qt-creator/qt-creator
Make DocumentManager::projectsDirectory a FileName
Change-Id: I9454c2148c398939c64bfa6b1fc182670a1d5f99 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "baseprojectwizarddialog.h"
|
||||
|
||||
#include <coreplugin/documentmanager.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/projectintropage.h>
|
||||
|
||||
#include <QDir>
|
||||
@@ -144,7 +145,7 @@ void BaseProjectWizardDialog::slotAccepted()
|
||||
{
|
||||
if (d->introPage->useAsDefaultPath()) {
|
||||
// Store the path as default path for new projects if desired.
|
||||
Core::DocumentManager::setProjectsDirectory(path());
|
||||
Core::DocumentManager::setProjectsDirectory(Utils::FileName::fromString(path()));
|
||||
Core::DocumentManager::setUseProjectsDirectory(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user