From fc7c32fc68f2c2618644f9bea6176c63940706b3 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Mon, 26 Mar 2018 15:25:37 -0400 Subject: [PATCH] do not truncate .dat extension for wallets in gui --- src/qt/walletmodel.cpp | 6 +----- 1 file changed, 1 insertion(+), 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()