> On Dec. 2, 2011, 10:47 p.m., Marko Käning wrote: > > kmymoney/mymoney/mymoneyfiletest.cpp, line 2071 > > <http://git.reviewboard.kde.org/r/103264/diff/6-7/?file=42461#file42461line2071> > > > > Good to know that "ft.restart()" rewinds the transaction made. > > > > Actually, does it rewind ALL transactions made since creating "ft", or > > only the previously committed transaction?
It does not rewind any transactions at all. The MyMoneyFileTransaction object can only encapsulate a single transaction. It starts by creating the object and terminates when you call commit() or rollback(). Destroying it call rollback() automagically. In order to reuse it for a second transaction as in this case, you can use restart() to prepare the object for another transaction. I just see that the documentation of this class is rather slim. - Thomas ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/103264/#review8670 ----------------------------------------------------------- On Dec. 2, 2011, 10:43 p.m., Marko Käning wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/103264/ > ----------------------------------------------------------- > > (Updated Dec. 2, 2011, 10:43 p.m.) > > > Review request for KMymoney. > > > Description > ------- > > Highlighting of online statement balance with red background and > highlighted text if file balance and online balance are different. > (This patch was put together from Thomas' and Cristian's advice on ML) > > > This addresses bug 287494. > http://bugs.kde.org/show_bug.cgi?id=287494 > > > Diffs > ----- > > kmymoney/mymoney/mymoneyfile.h d44e2ea > kmymoney/mymoney/mymoneyfile.cpp f573f9a > kmymoney/mymoney/mymoneyfiletest.h ad5c687 > kmymoney/mymoney/mymoneyfiletest.cpp a3c17ed > kmymoney/widgets/register.h 8cd1a32 > kmymoney/widgets/register.cpp e62fe63 > > Diff: http://git.reviewboard.kde.org/r/103264/diff/diff > > > Testing > ------- > > Yes > > > Screenshots > ----------- > > small snapshot showing the highlighted group marker > http://git.reviewboard.kde.org/r/103264/s/345/ > > > Thanks, > > Marko Käning > >
_______________________________________________ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde.org/mailman/listinfo/kmymoney-devel