Merge pull request #8 from celil-kj/master
fix error when cancelling export
This commit is contained in:
commit
f8be324ace
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…
Reference in a new issue