mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-09 11:02:06 +02:00
Fix error when export is cancelled without specifying a filename.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user