diff options
| author | Gregory Sanders <[email protected]> | 2018-03-26 15:25:37 -0400 |
|---|---|---|
| committer | Gregory Sanders <[email protected]> | 2018-03-26 15:25:37 -0400 |
| commit | fc7c32fc68f2c2618644f9bea6176c63940706b3 (patch) | |
| tree | 635f4e9454ed80ed2346676970b7fde1cb2d2a94 /src/qt/walletmodel.cpp | |
| parent | Merge #12699: [wallet] Shuffle transaction inputs before signing (diff) | |
| download | discoin-fc7c32fc68f2c2618644f9bea6176c63940706b3.tar.xz discoin-fc7c32fc68f2c2618644f9bea6176c63940706b3.zip | |
do not truncate .dat extension for wallets in gui
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 555a21e8c..795302be5 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -748,11 +748,7 @@ int WalletModel::getDefaultConfirmTarget() const QString WalletModel::getWalletName() const { LOCK(wallet->cs_wallet); - QString walletName = QString::fromStdString(wallet->GetName()); - if (walletName.endsWith(".dat")) { - walletName.truncate(walletName.size() - 4); - } - return walletName; + return QString::fromStdString(wallet->GetName()); } bool WalletModel::isMultiwallet() |