UI: show complete path to wallet.dat on Wallet-Repait tab (Win separator-fix)

This commit is contained in:
crowning- 2015-10-25 21:28:18 +01:00
parent ba053de0d9
commit eb5224c1c1

View File

@ -246,8 +246,8 @@ RPCConsole::RPCConsole(QWidget *parent) :
#ifdef ENABLE_WALLET
ui->berkeleyDBVersion->setText(DbEnv::version(0, 0, 0));
std::string walletPath = GetDataDir().string();
walletPath += "/" + GetArg("-wallet", "wallet.dat");
ui->wallet_path->setText(QDir::toNativeSeparators(QString::fromStdString(walletPath)));
walletPath += QDir::separator().toAscii() + GetArg("-wallet", "wallet.dat");
ui->wallet_path->setText(QString::fromStdString(walletPath));
#else
ui->label_berkeleyDBVersion->hide();
ui->berkeleyDBVersion->hide();