Fix error when export is cancelled without specifying a filename.

This commit is contained in:
Celil 2011-07-14 17:11:11 -07:00
parent 77b615ceba
commit 608810a3e7
2 changed files with 4 additions and 0 deletions

View File

@ -187,6 +187,8 @@ void AddressBookPage::exportClicked()
QDir::currentPath(),
tr("Comma separated file (*.csv)"));
if (filename.isNull()) return;
CSVModelWriter writer(filename);
// name, column, role

View File

@ -242,6 +242,8 @@ void TransactionView::exportClicked()
QDir::currentPath(),
tr("Comma separated file (*.csv)"));
if (filename.isNull()) return;
CSVModelWriter writer(filename);
// name, column, role