mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Constrain constant values to a single location in code
This commit is contained in:
@@ -162,7 +162,7 @@ void Intro::pickDataDirectory()
|
||||
/* 2) Allow QSettings to override default dir */
|
||||
dataDir = settings.value("strDataDir", dataDir).toString();
|
||||
|
||||
if(!fs::exists(GUIUtil::qstringToBoostPath(dataDir)) || GetBoolArg("-choosedatadir", false))
|
||||
if(!fs::exists(GUIUtil::qstringToBoostPath(dataDir)) || GetBoolArg("-choosedatadir", DEFAULT_CHOOSE_DATADIR))
|
||||
{
|
||||
/* If current default data directory does not exist, let the user choose one */
|
||||
Intro intro;
|
||||
|
||||
Reference in New Issue
Block a user