Bug 259293

Summary: Find messages in kmail2 has bugged drop down list of message parts to search
Product: [Applications] kmail2 Reporter: Gregor Petrin <gregap>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jtamate
Priority: NOR    
Version First Reported In: 2.0.89   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gregor Petrin 2010-12-09 09:00:56 UTC
Version:           2.0.89 (using KDE 4.5.85) 
OS:                Linux

If I open the search dialog and want to change the part of the message in which I want to perform the search (e.g. Subject, Body of Message), the control does not properly update when I change my selection.

For example, if I manually input 'Body' in there and then open the drop down menu and choose something else, this something else does not appear in the dialog. Also, if I just pick one thing from the drop down menu and then pick something else, the previously selected item becomes cut off after about 15 letters with no hint of the just selected item. If I then pick different things in the drop down menu, I get weird different results.

For example, when the dialog opened, I first chose 'All recipients' and then changed it to 'Anywhere in the headers' and now the text 'All recipien Headers' appears in the control with the letter 'n' somehow misshaped. I think this is a visual bug because if I choose 'Size in Bytes' the control text is still wierd (currently 'All Recipienes') but the search terms field has changed into a numeric input and currently says '0 bytes' (which seems a weird default, but that's besides the point :)).

Reproducible: Always
Comment 1 Jaime Torres 2010-12-17 19:49:04 UTC
Confirmed: the problem is in kdepim/mailcommon/searchpatternedit.cpp
Comment 2 Jaime Torres 2010-12-23 11:16:31 UTC
With today kmail2 (from git), it works as expected again.