|
|
@ -1072,9 +1072,9 @@ void MainWindow::importPrivKey() { |
|
|
|
void MainWindow::exportTransactions() { |
|
|
|
// First, get the export file name
|
|
|
|
QString exportName = "hush-transactions-" + QDateTime::currentDateTime().toString("yyyyMMdd") + ".csv"; |
|
|
|
|
|
|
|
QUrl csvName = QFileDialog::getSaveFileUrl(this, |
|
|
|
tr("Export transactions"), exportName, "CSV file (*.csv)"); |
|
|
|
QDir docsDir(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)); |
|
|
|
QUrl pName = QUrl::fromLocalFile(docsDir.filePath(exportName)); |
|
|
|
QUrl csvName = QFileDialog::getSaveFileUrl(this, tr("Export transactions"), pName, "CSV file (*.csv)"); |
|
|
|
|
|
|
|
if (csvName.isEmpty()) |
|
|
|
return; |
|
|
@ -1108,7 +1108,8 @@ void MainWindow::backupWalletDat() { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
QUrl backupName = QFileDialog::getSaveFileUrl(this, tr("Backup wallet.dat"), backupDefaultName, "Data file (*.dat)"); |
|
|
|
QUrl pName = QUrl::fromLocalFile(hushdir.filePath(backupDefaultName)); |
|
|
|
QUrl backupName = QFileDialog::getSaveFileUrl(this, tr("Backup wallet.dat"), pName, "Data file (*.dat)"); |
|
|
|
if (backupName.isEmpty()) |
|
|
|
return; |
|
|
|
|
|
|
|