On Saturday 12 November 2005 11:52 am, someone claiming to be Chris Shoemaker 
wrote:
> On Sat, Nov 12, 2005 at 11:29:20AM -0500, Chris Shoemaker wrote:
> > Sorry, Tim.  I've had some hardware failures that prevent me from
> > testing this at the moment, but I can at least tell you that it has
> > worked for me.  There may have been a regression since budgets were
> > merged into G2, or there may be something different about your
> > environment that I didn't account for.
>
> Tim,
>         Oh, actually, the real problem was that I didn't sufficiently
> test some last-minute changes I made during integration.  The problem
> you see will only occur if you have exactly one budget.  So, you can
> work-around this problem in one of two ways:
>
> 1) Just create an extra budget.  Then when you open a budget, you'll
> have to use the dialog to select the one you want to open; OR
>
> 2) change "GncBudget *bgt;" to "GncBudget *bgt = NULL;" in
> gnc_plugin_budget_cmd_open_budget() found on or about
> src/gnome/gnc-plugin-budget.c:211.
>
> If you went through the trouble of making a budget, rest assured it's
> still there.  Sorry for the trouble.
>

I tried this on the source tree I had at the time I reported the problem and 
it didn't work. I updated from SVN last night and the file seems to have been 
changed. Yet, the problem persists.

Lines 211-222 in gnc-plugin-budget.c are:

GncBudget *
gnc_budget_gui_select_budget(QofBook *book)
{
    GncBudget *bgt;
    GtkDialog *dlg;
    GtkTreeView *tv;
    GtkTreeIter iter;
    GtkTreeSelection *sel;
    GtkTreeModel *tm;
    gint response;
    gboolean ok;

Regards, 
Tim

Attachment: pgplR6A3Fp0YN.pgp
Description: PGP signature

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to