Bug 94526

Summary: switching tabs causes focus in wrong place
Product: [Applications] akregator Reporter: George Staikos <staikos>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: cvs   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description George Staikos 2004-12-06 08:44:56 UTC
Switch tabs with the mouse from a page viewer to the article viewer tab causes 
the focus to go into the search bar instead of the articleviewer widget.
Comment 1 George Staikos 2004-12-06 08:56:54 UTC
CVS commit by staikos: 

set the focus away from the search line when switching to the main tab
BUG: 94526


  M +5 -5      akregator_view.cpp   1.187


--- kdenonbeta/akregator/src/akregator_view.cpp  #1.186:1.187
@@ -686,8 +686,9 @@ void aKregatorView::slotFrameChanged(Fra
     m_currentFrame=f;
 
-    if (f == m_mainFrame)
-        m_tabsClose->setEnabled(false);
-    else
-        m_tabsClose->setEnabled(true);
+    m_tabsClose->setEnabled(f != m_mainFrame);
+
+    if (f == m_mainFrame) {
+        m_mainFrame->widget()->setFocus();
+    }
 
     KParts::ReadOnlyPart* p = f->part();