From 2834abcbc6aaf9da0ec57e182104d53767b8fecb Mon Sep 17 00:00:00 2001 From: fekt Date: Sun, 19 Mar 2023 00:28:54 +0000 Subject: [PATCH] derp fix --- src/mainwindow.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f73540f..2ce544e 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1071,10 +1071,11 @@ void MainWindow::importPrivKey() { */ void MainWindow::exportTransactions() { // First, get the export file name + QString exportName; if(isdragonx){ - QString exportName = "drgx-transactions-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".csv"; + exportName = "drgx-transactions-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".csv"; }else{ - QString exportName = "hush-transactions-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".csv"; + exportName = "hush-transactions-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".csv"; } QDir docsDir(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)); @@ -1099,11 +1100,11 @@ void MainWindow::backupWalletDat() { return; QDir hushdir(rpc->getConnection()->config->hushDir); - + QString backupDefaultName; if(isdragonx){ - QString backupDefaultName = "drgx-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat"; + backupDefaultName = "drgx-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat"; }else{ - QString backupDefaultName = "hush-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat"; + backupDefaultName = "hush-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat"; } if (Settings::getInstance()->isTestnet()) {