Преглед на файлове

qt: Only override -datadir if different from the default

Fixes #3905.
pull/1/head
Wladimir J. van der Laan преди 8 години
родител
ревизия
c61fe44194
  1. 7
      src/qt/intro.cpp

7
src/qt/intro.cpp

@ -189,7 +189,12 @@ void Intro::pickDataDirectory() @@ -189,7 +189,12 @@ void Intro::pickDataDirectory()
settings.setValue("strDataDir", dataDir);
}
SoftSetArg("-datadir", GUIUtil::qstringToBoostPath(dataDir).string()); // use OS locale for path setting
/* Only override -datadir if different from the default, to make it possible to
* override -datadir in the bitcoin.conf file in the default data directory
* (to be consistent with bitcoind behavior)
*/
if(dataDir != getDefaultDataDirectory())
SoftSetArg("-datadir", GUIUtil::qstringToBoostPath(dataDir).string()); // use OS locale for path setting
}
void Intro::setStatus(int status, const QString &message, quint64 bytesAvailable)

Зареждане…
Отказ
Запис