Merge #12795: do not truncate .dat extension for wallets in gui
fc7c32fc6 do not truncate .dat extension for wallets in gui (Gregory Sanders)
Pull request description:
Truncating the extension results in wallet name ambiguity and the inability to use the wallet in GUI debug rpc console.
Resolves #12794
Tree-SHA512: 89507918f597e9274148b45233b893c9f653da4f9e929415822165d47c67b55ad0b2d5ff53b508e942831d5213d5c15bce3fbdfbcb592a5c7f3dd5c1ca02cfb8
This commit is contained in:
1 file changed
+1
-5
@@ -748,11 +748,7 @@ int WalletModel::getDefaultConfirmTarget() const
|
|||||||
QString WalletModel::getWalletName() const
|
QString WalletModel::getWalletName() const
|
||||||
{
|
{
|
||||||
LOCK(wallet->cs_wallet);
|
LOCK(wallet->cs_wallet);
|
||||||
QString walletName = QString::fromStdString(wallet->GetName());
|
return QString::fromStdString(wallet->GetName());
|
||||||
if (walletName.endsWith(".dat")) {
|
|
||||||
walletName.truncate(walletName.size() - 4);
|
|
||||||
}
|
|
||||||
return walletName;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WalletModel::isMultiwallet()
|
bool WalletModel::isMultiwallet()
|
||||||
|
|||||||
Reference in new issue
Block a user