Diff of /borrowersearch.cpp [6a4355] .. [c4ede9]  Maximize  Restore

Switch to side-by-side view

--- a/borrowersearch.cpp
+++ b/borrowersearch.cpp
@@ -53,6 +53,12 @@
 void BorrowerSearch::searchBorrowers() {
         QSettings settings;
         QString borrowersDbFilePath = settings.value("borrowersDbFilePath").toString();
+
+        // If borrowersDbFilePath is not set,
+        // Default to APP_DIR/borrowers.db so the program does not crash.
+        if ( borrowersDbFilePath.isEmpty() ) {
+            borrowersDbFilePath = 'borrowers.db';
+        }
 
 	clearResults();
 

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks