Summary: | korganizer crash deleting new filters | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | FiNeX <finex> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
log of the crash
one-line-patch to fix the bug new patch |
Description
FiNeX
2007-12-09 18:50:01 UTC
Created attachment 22433 [details]
log of the crash
Tested on revision 746602. Created attachment 22456 [details]
one-line-patch to fix the bug
This small patch solved the bug for me. It prevents the code to look in an
index that does not exists.
This is my first patch, if I made something wrong or not-so-elegant please tell
me.
The patch is not right, because doing that, you select ever the previous element. Created attachment 22486 [details]
new patch
Ops, in my rush I forgot that FilterEdit::filterSelected() is called in other
situations and forgot to look at the filter actually selected, just tested
various deletion cases. Sorry
Anyway I made another patch, that at least fixes the crash and select the right
filter. However I found another bug: if you create some filters and the delete
all of them, the Ok and Apply buttons will become disabled until you edit the
name field. I can't tell if this bug was already there, since the app used to
crash in such situation.
I think I will fill the bug report when someone reviews the patch, since the
bug is not visible in the actual revision.
Ok, with this patch korganizer doesn't crash AND the select list works correctly. It seems that when the list is empty the two buttons are disabled. It is not a major problem. If you find the way to let them enabled it should be better. Thanks Fábio! SVN commit 758897 by winterz: fix "korganizer crash deleting new filters" thanks for the patch Fábio! BUG: 153739 M +3 -1 filtereditdialog.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=758897 |