aboutsummaryrefslogtreecommitdiff
path: root/src/qt/addressbookpage.cpp
diff options
context:
space:
mode:
authorCelil <celil.kj@gmail.com>2011-07-14 17:11:11 -0700
committerCelil <celil.kj@gmail.com>2011-07-14 17:11:11 -0700
commit608810a3e77b9cdc6513e1f09388fd75f655dbee (patch)
tree450e625177af1786205624bd2bdff56d827ea15d /src/qt/addressbookpage.cpp
parent77b615cebabbe7274e6409f95dda61e393a75e7f (diff)
Fix error when export is cancelled without specifying a filename.
Diffstat (limited to 'src/qt/addressbookpage.cpp')
-rw-r--r--src/qt/addressbookpage.cpp2
1 files changed, 2 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