Bug 179992

Summary: kmail input focus is on search filter after startup
Product: [Applications] kmail Reporter: Andrey Borzenkov <arvidjaar>
Component: searchAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: christophe
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andrey Borzenkov 2009-01-08 08:50:20 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

After startup kmail opens Inbox, but instead of going to first unread mail (as set in preferences) it goes into search filter field. It requires explicit click on message list to change focus.

Changing folder behaves correctly; it seems to happen on startup only.
Comment 1 Christophe Marin 2009-05-30 20:35:06 UTC
This issue should be fixed now, can you check with a recent KMail version ?
Comment 2 Andrey Borzenkov 2009-05-30 20:38:39 UTC
I do not see it anymore in 4.2.87.
Comment 3 Christophe Marin 2009-05-30 20:52:45 UTC
Thank you for your feedback.
Comment 4 Thomas McGuire 2009-07-11 20:46:32 UTC
SVN commit 995025 by tmcguire:

Don't initally put the focus on the quick search field, but on the view, so that shortcuts like
+ and j work when starting.

This is a workaround, for some reason the setFocus() call in widgetbase.cpp didn't work, the focus_child
of the mainwindow was reset to 0 for some unknown reason afterwards.

BUG: 179992


 M  +2 -0      kmail_part.cpp  
 M  +6 -0      kmmainwidget.cpp  
 M  +3 -1      messagelistview/core/widgetbase.cpp  
 M  +11 -0     messagelistview/pane.cpp  
 M  +5 -0      messagelistview/pane.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=995025
Comment 5 Christophe Marin 2009-07-13 22:57:42 UTC
*** Bug 199459 has been marked as a duplicate of this bug. ***
Comment 6 Allen Winter 2009-07-22 19:25:48 UTC
SVN commit 1001214 by winterz:

Backport r995025 by tmcguire from trunk to the 4.3 branch:

Don't initally put the focus on the quick search field, but on the view, so that shortcuts like
+ and j work when starting.

This is a workaround, for some reason the setFocus() call in widgetbase.cpp didn't work, the focus_child
of the mainwindow was reset to 0 for some unknown reason afterwards.

CCBUG: 179992



 M  +2 -0      kmail_part.cpp  
 M  +6 -0      kmmainwidget.cpp  
 M  +3 -1      messagelistview/core/widgetbase.cpp  
 M  +11 -0     messagelistview/pane.cpp  
 M  +5 -0      messagelistview/pane.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1001214