Bug 94526 - switching tabs causes focus in wrong place
Summary: switching tabs causes focus in wrong place
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: cvs
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-06 08:44 UTC by George Staikos
Modified: 2004-12-06 08:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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();