Summary: | Crash on entering opening balance for new account | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | allan <agander93> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | yess |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
allan
2011-05-27 22:48:05 UTC
The crash appears to be caused because, in kmymoney/models/accountsmodel.cpp line 886 - QStandardItem *accountItem = d->itemFromAccountId(this, account->id()); the item is not found, but the pointer is used. I've inserted a return if there is a null pointer, and this avoids the crash. The manually entered new account with opening balance can now be created, and the failing qif can now be imported. However, as I'm not au fait with this area, I would appreciate comments. I will come up with a proper fix for this. *** Bug 274159 has been marked as a duplicate of this bug. *** SVN commit 1233902 by conet: BUG: 274308 Crash when the balance of an equity account was changed since equity accounts are not represented in the institutions model. M +2 -2 accountsmodel.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1233902 *** Bug 274637 has been marked as a duplicate of this bug. *** |