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(),
|
QDir::currentPath(),
|
||||||
tr("Comma separated file (*.csv)"));
|
tr("Comma separated file (*.csv)"));
|
||||||
|
|
||||||
|
if (filename.isNull()) return;
|
||||||
|
|
||||||
CSVModelWriter writer(filename);
|
CSVModelWriter writer(filename);
|
||||||
|
|
||||||
// name, column, role
|
// name, column, role
|
||||||
|
|
|
@ -242,6 +242,8 @@ void TransactionView::exportClicked()
|
||||||
QDir::currentPath(),
|
QDir::currentPath(),
|
||||||
tr("Comma separated file (*.csv)"));
|
tr("Comma separated file (*.csv)"));
|
||||||
|
|
||||||
|
if (filename.isNull()) return;
|
||||||
|
|
||||||
CSVModelWriter writer(filename);
|
CSVModelWriter writer(filename);
|
||||||
|
|
||||||
// name, column, role
|
// name, column, role
|
||||||
|
|
Loading…
Reference in a new issue