|
|
@ -142,7 +142,7 @@ QString Intro::getDefaultDataDirectory() |
|
|
|
return QString::fromStdString(GetDefaultDataDir().string()); |
|
|
|
return QString::fromStdString(GetDefaultDataDir().string()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Intro::pickDataDirectory() |
|
|
|
void Intro::pickDataDirectory(bool fIsTestnet) |
|
|
|
{ |
|
|
|
{ |
|
|
|
namespace fs = boost::filesystem;; |
|
|
|
namespace fs = boost::filesystem;; |
|
|
|
QSettings settings; |
|
|
|
QSettings settings; |
|
|
@ -160,6 +160,11 @@ void Intro::pickDataDirectory() |
|
|
|
/* If current default data directory does not exist, let the user choose one */ |
|
|
|
/* If current default data directory does not exist, let the user choose one */ |
|
|
|
Intro intro; |
|
|
|
Intro intro; |
|
|
|
intro.setDataDirectory(dataDir); |
|
|
|
intro.setDataDirectory(dataDir); |
|
|
|
|
|
|
|
if (!fIsTestnet) |
|
|
|
|
|
|
|
intro.setWindowIcon(QIcon(":icons/bitcoin")); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
intro.setWindowIcon(QIcon(":icons/bitcoin_testnet")); |
|
|
|
|
|
|
|
|
|
|
|
while(true) |
|
|
|
while(true) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(!intro.exec()) |
|
|
|
if(!intro.exec()) |
|
|
|