|
|
|
|
@ -379,19 +379,15 @@ gncFileOpen (void)
|
|
|
|
|
if (!gncFileQuerySave ())
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
newfile = fileBox(_("Open"), "*.gnc");
|
|
|
|
|
newfile = fileBox(_("Open"), NULL);
|
|
|
|
|
gncPostFileOpen (newfile);
|
|
|
|
|
|
|
|
|
|
/* This dialogue can show up early in the startup process.
|
|
|
|
|
* If the user fails to pick a file (by e.g. hitting the cancel
|
|
|
|
|
* button), we might be left with a null topgroup, which leads
|
|
|
|
|
* to nastiness when user goes to create their very first account.
|
|
|
|
|
* Don't leave their ass in a sling, give them what they need.
|
|
|
|
|
*/
|
|
|
|
|
if (NULL == topgroup)
|
|
|
|
|
{
|
|
|
|
|
/* This dialogue can show up early in the startup process. If the
|
|
|
|
|
* user fails to pick a file (by e.g. hitting the cancel button), we
|
|
|
|
|
* might be left with a null topgroup, which leads to nastiness when
|
|
|
|
|
* user goes to create their very first account. So create one. */
|
|
|
|
|
if (topgroup == NULL)
|
|
|
|
|
topgroup = xaccMallocAccountGroup();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
|