Summary: | crash when editing split transaction | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | MK <bugs.m1> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | abyss.andrey, onet.cristian |
Priority: | NOR | ||
Version: | git (master) | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kmymoney/76e334e1fa86c71cc239d618e93a0d0ea0f487fc | Version Fixed In: | |
Attachments: |
Screenshot of two editable lines in split transaction
New crash information added by DrKonqi |
Description
MK
2012-02-19 08:34:30 UTC
> While re-assigning the categories suddenly two editable lines appeared.
You can reproduce the two editable lines by double-clicking a different
entry with another entry still active. See attached screenshot.
With this situation even the "clear all" button leaves some entries behind!
And the crash with "empty QString" occurs a short time after that.
Regards,
Martin
Created attachment 73454 [details]
Screenshot of two editable lines in split transaction
Hi Thomas! After focus jumped to this "single character category" which is described in bug 306647 https://bugs.kde.org/show_bug.cgi?id=306647 it is possible to select multiple rows as described above. This is only possible when all warning dialogue boxes are enabled - especially warning "you need to assign a category to this split before it can be entered" "Delete all" doesn't work in this situation anymore and leaves entries behind. I can reproduce the crash with my build dated Aug 19th. Unfortunately I stripped it of debugging symbols. Regards Martin Hi! Thomas, could you try the following "foolproof" way to reproduce the problem described above? If this works for you, my build is somehow broken... steps: 1. Edit an existing spilt transaction 2. Double click on an empty line below the existing ones in column "category" 3. Select an existing category, and click somewhere on the list to leave entry line 4. Situation: Value is 0,00 5. Double click on value 0,00 to change it 6. Start typing numbers -> cursor focus jumps to category column! (1st bug) 7. Click somewhere on the list to leave entry dialogue 8. Question pops up: "Category doesn't exist. Create?" 9. Answer "No" 10. Question pops up: "You have to assign category before entering" 11. Answer "OK" 12. Second line appears as shown in screenshot (2nd bug) Thanks! Martin If in step 3 I click somewhere in the list, the entry does not get created. Only if I click on the arrow enter button (the on with the green OK sign) the entry gets created. That is how it should be. Even if I do that, and then continue until step 6 I do not see any focus changing to the category widget. That is tested with 4.6.3 as well as master. Thanks a lot. I will try to rebuild from a clean repo. Could you mark the bug as closed as it works for you? Martin Created attachment 82301 [details]
New crash information added by DrKonqi
kmymoney (4.6.90-d6570eaab8) on KDE Platform 4.10.5 using Qt 4.8.4
- What I was doing when the application crashed:
Steps to reproduce this:
1. Enter one split
2. While entering the second split rigth click on the first split
3. Observer the strange state of the editor
4. Press the edit accept button of the second split
5. Observe the crash
-- Backtrace (Reduced):
#6 0x0000000000464316 in QString::isEmpty (this=0x50) at /usr/include/qt4/QtCore/qstring.h:705
#7 0x000000000070fea7 in kMyMoneySplitTable::endEdit (this=0x36b0af0, keyBoardDriven=false) at /home/cristi/dezvoltare/kmymoney/kmymoney/dialogs/kmymoneysplittable.cpp:655
#8 0x000000000070fe03 in kMyMoneySplitTable::slotEndEdit (this=0x36b0af0) at /home/cristi/dezvoltare/kmymoney/kmymoney/dialogs/kmymoneysplittable.cpp:640
#9 0x0000000000712450 in kMyMoneySplitTable::qt_static_metacall (_o=0x36b0af0, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fff825b18f0) at /home/cristi/dezvoltare/kmymoney-build/kmymoney/dialogs/kmymoneysplittable.moc:89
[...]
#11 0x00007f283c108c12 in QAbstractButton::clicked(bool) () from /usr/lib64/qt4/libQtGui.so.4
*** Bug 272861 has been marked as a duplicate of this bug. *** Git commit 9f4ee725eda00e5730aa9e077fa1cd8d073a7055 by Cristian Oneț. Committed on 12/09/2013 at 21:25. Pushed by conet into branch 'master'. Fix a crash when editing a split transaction. When the focus of a row is changed if and edit operation is in progress end it regardless of the mouse button which was used. M +7 -6 kmymoney/dialogs/kmymoneysplittable.cpp http://commits.kde.org/kmymoney/9f4ee725eda00e5730aa9e077fa1cd8d073a7055 Git commit 76e334e1fa86c71cc239d618e93a0d0ea0f487fc by Cristian Oneț. Committed on 12/09/2013 at 21:25. Pushed by conet into branch '4.6'. Fix a crash when editing a split transaction. When the focus of a row is changed if and edit operation is in progress end it regardless of the mouse button which was used. (cherry picked from commit 9f4ee725eda00e5730aa9e077fa1cd8d073a7055) M +7 -6 kmymoney/dialogs/kmymoneysplittable.cpp http://commits.kde.org/kmymoney/76e334e1fa86c71cc239d618e93a0d0ea0f487fc |