aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2018-03-26 15:25:37 -0400
committerGregory Sanders <gsanders87@gmail.com>2018-03-26 15:25:37 -0400
commitfc7c32fc68f2c2618644f9bea6176c63940706b3 (patch)
tree635f4e9454ed80ed2346676970b7fde1cb2d2a94 /src/qt
parentc948dc8f4285e27d8c0f3553d9d427b2a7b01b77 (diff)
downloadbitcoin-fc7c32fc68f2c2618644f9bea6176c63940706b3.tar.xz
do not truncate .dat extension for wallets in gui
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/walletmodel.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index 555a21e8c5..795302be58 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()