mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix first run dialog not appearing
This commit is contained in:
parent
10a21cbfac
commit
ee77f38f40
@ -602,6 +602,7 @@ get_file_to_load()
|
|||||||
if (file_to_load)
|
if (file_to_load)
|
||||||
return g_strdup(file_to_load);
|
return g_strdup(file_to_load);
|
||||||
else
|
else
|
||||||
|
/* Note history will always return a valid (possibly empty) string */
|
||||||
return gnc_history_get_last();
|
return gnc_history_get_last();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -645,7 +646,7 @@ inner_main (void *closure, int argc, char **argv)
|
|||||||
|
|
||||||
gnc_hook_run(HOOK_STARTUP, NULL);
|
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_update_splash_screen(_("Loading data..."), GNC_SPLASH_PERCENTAGE_UNKNOWN);
|
||||||
gnc_file_open_file(gnc_get_splash_screen(), fn, /*open_readonly*/ FALSE);
|
gnc_file_open_file(gnc_get_splash_screen(), fn, /*open_readonly*/ FALSE);
|
||||||
|
Loading…
Reference in New Issue
Block a user