aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-15 01:30:54 -0700
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-15 01:30:54 -0700
commitf8be324acede985c389e3b332f7f17cef5130011 (patch)
tree450e625177af1786205624bd2bdff56d827ea15d /src/qt
parent77b615cebabbe7274e6409f95dda61e393a75e7f (diff)
parent608810a3e77b9cdc6513e1f09388fd75f655dbee (diff)
Merge pull request #8 from celil-kj/master
fix error when cancelling export
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/addressbookpage.cpp2
-rw-r--r--src/qt/transactionview.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp
index 4f629fc262..063e510c30 100644
--- a/src/qt/addressbookpage.cpp
+++ b/src/qt/addressbookpage.cpp
@@ -187,6 +187,8 @@ void AddressBookPage::exportClicked()
QDir::currentPath(),
tr("Comma separated file (*.csv)"));
+ if (filename.isNull()) return;
+
CSVModelWriter writer(filename);
// name, column, role
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index 03df422605..8aa43395e7 100644
--- a/src/qt/transactionview.cpp
+++ b/src/qt/transactionview.cpp
@@ -242,6 +242,8 @@ void TransactionView::exportClicked()
QDir::currentPath(),
tr("Comma separated file (*.csv)"));
+ if (filename.isNull()) return;
+
CSVModelWriter writer(filename);
// name, column, role