From e63171562e3a038f4209132302533aae81ee4a8d Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 21 Oct 2021 14:36:20 -0400 Subject: [PATCH] It is a Hush wallet dir --- src/mainwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9907152..42bfb64 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -346,8 +346,8 @@ void MainWindow::setupSettingsModal() { bool isUsingConsolidation = false; int size = 0; - QDir zcashdir(rpc->getConnection()->config->zcashDir); - QFile WalletSize(zcashdir.filePath("wallet.dat")); + QDir hushdir(rpc->getConnection()->config->zcashDir); + QFile WalletSize(hushdir.filePath("wallet.dat")); if (WalletSize.open(QIODevice::ReadOnly)){ size = WalletSize.size() / 1000000; //when file does open. //QString size1 = QString::number(size) ; @@ -837,15 +837,15 @@ void MainWindow::backupWalletDat() { if (!rpc->getConnection()) return; - QDir zcashdir(rpc->getConnection()->config->zcashDir); + QDir hushdir(rpc->getConnection()->config->zcashDir); QString backupDefaultName = "hush-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat"; if (Settings::getInstance()->isTestnet()) { - zcashdir.cd("testnet3"); + hushdir.cd("testnet3"); backupDefaultName = "testnet-" + backupDefaultName; } - QFile wallet(zcashdir.filePath("wallet.dat")); + QFile wallet(hushdir.filePath("wallet.dat")); if (!wallet.exists()) { QMessageBox::critical(this, tr("No wallet.dat"), tr("Couldn't find the wallet.dat on this computer") + "\n" + tr("You need to back it up from the machine hushd is running on"), QMessageBox::Ok);