gnucash maint: Fix first run dialog not appearing
Geert Janssens
gjanssens at code.gnucash.org
Thu Sep 13 15:14:04 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/ee77f38f (commit)
from https://github.com/Gnucash/gnucash/commit/10a21cbf (commit)
commit ee77f38f40f8b59a361a2e6f7024d8bac7b0c1d0
Author: Geert Janssens <geert at kobaltwit.be>
Date: Thu Sep 13 21:13:20 2018 +0200
Fix first run dialog not appearing
diff --git a/gnucash/gnucash-bin.c b/gnucash/gnucash-bin.c
index 2514e49..2592d2e 100644
--- a/gnucash/gnucash-bin.c
+++ b/gnucash/gnucash-bin.c
@@ -602,6 +602,7 @@ get_file_to_load()
if (file_to_load)
return g_strdup(file_to_load);
else
+ /* Note history will always return a valid (possibly empty) string */
return gnc_history_get_last();
}
@@ -645,7 +646,7 @@ inner_main (void *closure, int argc, char **argv)
gnc_hook_run(HOOK_STARTUP, NULL);
- if (!nofile && (fn = get_file_to_load()))
+ if (!nofile && (fn = get_file_to_load()) && *fn )
{
gnc_update_splash_screen(_("Loading data..."), GNC_SPLASH_PERCENTAGE_UNKNOWN);
gnc_file_open_file(gnc_get_splash_screen(), fn, /*open_readonly*/ FALSE);
Summary of changes:
gnucash/gnucash-bin.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list