mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
Fix error when export is cancelled without specifying a filename.
This commit is contained in:
parent
77b615ceba
commit
608810a3e7
@ -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…
Reference in New Issue
Block a user