r17137 - gnucash/branches/2.2/src/register/ledger-core - [r17078] Bug #347474: When tabbing off the last showed split, correctly focus new empty split.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Apr 26 12:50:14 EDT 2008


Author: andi5
Date: 2008-04-26 12:50:13 -0400 (Sat, 26 Apr 2008)
New Revision: 17137
Trac: http://svn.gnucash.org/trac/changeset/17137

Modified:
   gnucash/branches/2.2/src/register/ledger-core/split-register-load.c
Log:
[r17078] Bug #347474: When tabbing off the last showed split, correctly focus new empty split.

If info->traverse_to_new is true, use CURSOR_CLASS_SPLIT as find_class
to avoid focussing the transaction.


Modified: gnucash/branches/2.2/src/register/ledger-core/split-register-load.c
===================================================================
--- gnucash/branches/2.2/src/register/ledger-core/split-register-load.c	2008-04-26 16:50:04 UTC (rev 17136)
+++ gnucash/branches/2.2/src/register/ledger-core/split-register-load.c	2008-04-26 16:50:13 UTC (rev 17137)
@@ -302,14 +302,15 @@
     find_trans = blank_trans;
     find_split = NULL;
     find_trans_split = blank_split;
+    find_class = CURSOR_CLASS_SPLIT;
   }
   else
   {
     find_trans = info->cursor_hint_trans;
     find_split = info->cursor_hint_split;
     find_trans_split = info->cursor_hint_trans_split;
+    find_class = info->cursor_hint_cursor_class;
   }
-  find_class = info->cursor_hint_cursor_class;
 
   save_loc = table->current_cursor_loc;
 



More information about the gnucash-changes mailing list