Changeset View
Changeset View
Standalone View
Standalone View
src/qt/intro.cpp
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | if (!fs::exists(GUIUtil::qstringToBoostPath(dataDir)) || | ||||
while (true) { | while (true) { | ||||
if (!intro.exec()) { | if (!intro.exec()) { | ||||
/* Cancel clicked */ | /* Cancel clicked */ | ||||
return false; | return false; | ||||
} | } | ||||
dataDir = intro.getDataDirectory(); | dataDir = intro.getDataDirectory(); | ||||
try { | try { | ||||
TryCreateDirectories(GUIUtil::qstringToBoostPath(dataDir)); | if (TryCreateDirectories( | ||||
GUIUtil::qstringToBoostPath(dataDir))) { | |||||
// If a new data directory has been created, make wallets | |||||
// subdirectory too | |||||
TryCreateDirectories(GUIUtil::qstringToBoostPath(dataDir) / | |||||
"wallets"); | |||||
} | |||||
break; | break; | ||||
} catch (const fs::filesystem_error &) { | } catch (const fs::filesystem_error &) { | ||||
QMessageBox::critical(0, tr(PACKAGE_NAME), | QMessageBox::critical(0, tr(PACKAGE_NAME), | ||||
tr("Error: Specified data directory " | tr("Error: Specified data directory " | ||||
"\"%1\" cannot be created.") | "\"%1\" cannot be created.") | ||||
.arg(dataDir)); | .arg(dataDir)); | ||||
/* fall through, back to choosing screen */ | /* fall through, back to choosing screen */ | ||||
} | } | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |