Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 669 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()) return EXIT_SUCCESS; | if (!Intro::pickDataDirectory()) return EXIT_SUCCESS; | ||||
/// 6. Determine availability of data directory and parse bitcoin.conf | /// 6. Determine availability of data directory and parse bitcoin.conf | ||||
/// - Do not call GetDataDir(true) before this step finishes. | /// - Do not call GetDataDir(true) before this step finishes. | ||||
if (!boost::filesystem::is_directory(GetDataDir(false))) { | if (!fs::is_directory(GetDataDir(false))) { | ||||
QMessageBox::critical( | QMessageBox::critical( | ||||
0, QObject::tr(PACKAGE_NAME), | 0, QObject::tr(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(GetArg("-datadir", "")))); | .arg(QString::fromStdString(GetArg("-datadir", "")))); | ||||
return EXIT_FAILURE; | return EXIT_FAILURE; | ||||
} | } | ||||
try { | try { | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |