Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 617 Lines • ▼ Show 20 Lines | #endif | ||||
} | } | ||||
/// 5. Now that settings and translations are available, ask user for data | /// 5. Now that settings and translations are available, ask user for data | ||||
/// directory. User language is set up: pick a data directory. | /// directory. User language is set up: pick a data directory. | ||||
if (!Intro::pickDataDirectory(*node)) { | if (!Intro::pickDataDirectory(*node)) { | ||||
return EXIT_SUCCESS; | return EXIT_SUCCESS; | ||||
} | } | ||||
/// 6. Determine availability of data and blocks directory and parse | /// 6. Determine availability of data directory and parse | ||||
/// bitcoin.conf | /// bitcoin.conf | ||||
/// - Do not call GetDataDir(true) before this step finishes. | /// - Do not call GetDataDir(true) before this step finishes. | ||||
if (!fs::is_directory(GetDataDir(false))) { | if (!CheckDataDirOption()) { | ||||
node->initError( | node->initError( | ||||
strprintf("Specified data directory \"%s\" does not exist.\n", | strprintf("Specified data directory \"%s\" does not exist.\n", | ||||
gArgs.GetArg("-datadir", ""))); | gArgs.GetArg("-datadir", ""))); | ||||
QMessageBox::critical( | QMessageBox::critical( | ||||
nullptr, PACKAGE_NAME, | nullptr, PACKAGE_NAME, | ||||
QObject::tr( | QObject::tr( | ||||
"Error: Specified data directory \"%1\" does not exist.") | "Error: Specified data directory \"%1\" does not exist.") | ||||
.arg(QString::fromStdString(gArgs.GetArg("-datadir", "")))); | .arg(QString::fromStdString(gArgs.GetArg("-datadir", "")))); | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |