Fix datadir initialization in dash-qt (#1287)

This commit is contained in:
Tim Flynn 2017-01-27 09:07:13 -05:00 committed by UdjinM6
parent 534effaf85
commit 9c5db04953

View File

@ -173,7 +173,7 @@ void Intro::pickDataDirectory()
/* 2) Allow QSettings to override default dir */
QString dataDir = settings.value("strDataDir", dataDirDefaultCurrent).toString();
/* 3) Check to see if default datadir is the one we expect */
QString dataDirDefaultSettings = settings.value("strDataDirDefault", dataDirDefaultCurrent).toString();
QString dataDirDefaultSettings = settings.value("strDataDirDefault").toString();
if(!fs::exists(GUIUtil::qstringToBoostPath(dataDir)) || GetBoolArg("-choosedatadir", DEFAULT_CHOOSE_DATADIR) || dataDirDefaultCurrent != dataDirDefaultSettings)
{