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()) {