Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

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();