Browse Source

Fix error when export is cancelled without specifying a filename.

0.8
Celil 14 years ago
parent
commit
608810a3e7
  1. 2
      src/qt/addressbookpage.cpp
  2. 2
      src/qt/transactionview.cpp

2
src/qt/addressbookpage.cpp

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

2
src/qt/transactionview.cpp

@ -242,6 +242,8 @@ void TransactionView::exportClicked() @@ -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…
Cancel
Save