Fix error when export is cancelled without specifying a filename.
[novacoin.git] / src / qt / addressbookpage.cpp
index 4f629fc..063e510 100644 (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