Version: (using KDE Devel) Installed from: Compiled sources Step to reproduce (Revision from SVN) 1) start korganizer 2) open "filter" dialog (settings->manage view filter) 3) add a filter 4) delete it 5) click to "delete" on the confirm dialog box. korganizer will crash. There is no backtrace on gdb (stack empty). I'll attach the log from the shell.
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