Summary: | Crashed when selected split in a new scheduled deposit | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | iwaddox |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | djhoulden, guy.shoebridge, iwaddox |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi |
Description
iwaddox
2010-11-29 16:58:34 UTC
Created attachment 53862 [details]
New crash information added by DrKonqi
kmymoney (4.5.0) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0
- What I was doing when the application crashed:
I can reproduce this crash at will.
Open KMyMoney
Click Scheduled transactions
Click New Scheduled
Click Deposit tab
Click Split symbol
-- Backtrace (Reduced):
#15 0x03a33019 in QAbstractButton::clicked (this=0x9afa260, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#16 0x036f2ff9 in QAbstractButtonPrivate::emitClicked (this=0x9afa280) at widgets/qabstractbutton.cpp:546
#17 0x036f46f4 in QAbstractButtonPrivate::click (this=0x9afa280) at widgets/qabstractbutton.cpp:539
#18 0x036f49ae in QAbstractButton::mouseReleaseEvent (this=0x9afa260, e=0xbfbdac50) at widgets/qabstractbutton.cpp:1121
#19 0x03322e08 in QWidget::event (this=0x9afa260, event=0xbfbdac50) at kernel/qwidget.cpp:8187
If you select Direct Deposit Account Payee Before selecting split it does NOT crash SVN commit 1202624 by conet: BUG: 258290 Disable the split button until a proper account was selected. The code is there on the KDE3 version don't know how it got lost during the port. M +3 -0 transactioneditor.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1202624 I think this fix has broken the ledger view transaction form. On 4.5 cvs head and 1.0.5 I used to be able to enter a split transaction without a "pay to" or "pay from". Now, the split button is disabled. I agree with David. If it's only a problem with scheduled transactions then we should not make it mandatory for all other transactions as well. I have many of those split transactions w/o a payee assignment. None of them came from a scheduled transaction though. Bug entry reopened. Sorry for breaking things. I just took the code from the 1.x version. At least no we have the answer why it was removed in the KDE4 version. I see two solutions to this problem. 1. From the ledger call slotUpdateAccount(const QString&) with the current account after creating the edit widgets 2. Replace "if (category->splitButton())" with "if (m_item->showRowInForm(0) && category->splitButton())" SVN commit 1202895 by conet: BUG: 258290 Disable the split button only if the editors account is not a valid one like in a new scheduled transaction when an account is not yet selected. M +1 -1 transactioneditor.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1202895 SVN commit 1202896 by conet: BUG: 258290 Disable the split button only if the editors account is not a valid one like in a new scheduled transaction when an account is not yet selected. Merged into the stable branch. M +1 -1 transactioneditor.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1202896 Created attachment 55602 [details]
New crash information added by DrKonqi
kmymoney (4.5.0) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0
- What I was doing when the application crashed:creating a new deposit transaction and making this a split cost. When presing the split button the application crashed
-- Backtrace (Reduced):
#15 0x04824019 in QAbstractButton::clicked (this=0xf824540, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#16 0x044e3ff9 in QAbstractButtonPrivate::emitClicked (this=0xfaf32f8) at widgets/qabstractbutton.cpp:546
#17 0x044e56f4 in QAbstractButtonPrivate::click (this=0xfaf32f8) at widgets/qabstractbutton.cpp:539
#18 0x044e59ae in QAbstractButton::mouseReleaseEvent (this=0xf824540, e=0xbfbbf7b0) at widgets/qabstractbutton.cpp:1121
#19 0x04113e08 in QWidget::event (this=0xf824540, event=0xbfbbf7b0) at kernel/qwidget.cpp:8187
|