Browse Source

derp fix

custom_themes
fekt 1 year ago
parent
commit
2834abcbc6
  1. 11
      src/mainwindow.cpp

11
src/mainwindow.cpp

@ -1071,10 +1071,11 @@ void MainWindow::importPrivKey() {
*/ */
void MainWindow::exportTransactions() { void MainWindow::exportTransactions() {
// First, get the export file name // First, get the export file name
QString exportName;
if(isdragonx){ if(isdragonx){
QString exportName = "drgx-transactions-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".csv"; exportName = "drgx-transactions-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".csv";
}else{ }else{
QString exportName = "hush-transactions-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".csv"; exportName = "hush-transactions-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".csv";
} }
QDir docsDir(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)); QDir docsDir(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation));
@ -1099,11 +1100,11 @@ void MainWindow::backupWalletDat() {
return; return;
QDir hushdir(rpc->getConnection()->config->hushDir); QDir hushdir(rpc->getConnection()->config->hushDir);
QString backupDefaultName;
if(isdragonx){ if(isdragonx){
QString backupDefaultName = "drgx-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat"; backupDefaultName = "drgx-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat";
}else{ }else{
QString backupDefaultName = "hush-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat"; backupDefaultName = "hush-wallet-backup-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".dat";
} }
if (Settings::getInstance()->isTestnet()) { if (Settings::getInstance()->isTestnet()) {

Loading…
Cancel
Save