mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-23 15:20:49 +01:00
Fix error when export is cancelled without specifying a filename.
This commit is contained in:
parent
77b615ceba
commit
608810a3e7
2 changed files with 4 additions and 0 deletions
|
@ -187,6 +187,8 @@ void AddressBookPage::exportClicked()
|
|||
QDir::currentPath(),
|
||||
tr("Comma separated file (*.csv)"));
|
||||
|
||||
if (filename.isNull()) return;
|
||||
|
||||
CSVModelWriter writer(filename);
|
||||
|
||||
// name, column, role
|
||||
|
|
|
@ -242,6 +242,8 @@ void TransactionView::exportClicked()
|
|||
QDir::currentPath(),
|
||||
tr("Comma separated file (*.csv)"));
|
||||
|
||||
if (filename.isNull()) return;
|
||||
|
||||
CSVModelWriter writer(filename);
|
||||
|
||||
// name, column, role
|
||||
|
|
Loading…
Add table
Reference in a new issue