[Kmymoney-devel] [Bug 308247] KMymoney crashes on importing QIF

allan agander93 at gmail.com
Fri Oct 12 12:57:31 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=308247

--- Comment #8 from allan <agander93 at gmail.com> ---
(In reply to comment #7)
> @Allen
> I would do the following (line numbers refer to current git master):
> 
> a) move the definition of QList<qSplit> listqSplits; right before the if
> statement on line 1135.
> b) change the signature of extractSplits() to return a boolean
> c) replace the if statement on line 1135 with the following
> 
>    if( ! extractSplits(listqSplits)) {
> 
> d) change the logic in extractSplits in such a way that it returns true only
> if KMyMoney finds all the information needed to process them. If one is
> missing, return false, which will in case process the L entry found. In case
> no L is present, the importer will create an unbalanced transaction.

I wasn't expecting all that, but thanks.  It seems to work nicely, but I'll do
some more testing, to make sure nothing else complains.
I've excluded the split memo from the test for needed items.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list