From ee77f38f40f8b59a361a2e6f7024d8bac7b0c1d0 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Thu, 13 Sep 2018 21:13:20 +0200 Subject: [PATCH] Fix first run dialog not appearing --- gnucash/gnucash-bin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnucash/gnucash-bin.c b/gnucash/gnucash-bin.c index 2514e4945c..2592d2e74c 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);