Bug 94374 - no focus after deleting a feed
Summary: no focus after deleting a feed
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: 1.0-beta8
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-04 09:15 UTC by Ferdinand Gassauer
Modified: 2004-12-04 17:15 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 Ferdinand Gassauer 2004-12-04 09:15:46 UTC
Version:           1.0-beta8 (using KDE 3.3.89 (CVS >= 20041129), compiled sources)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.3-smp

HI!
after deleting a feed the next feed does not get the focus.
so it is not possible to use keys-only.
workaround mous click on a feed
cu
ferdinand
Comment 1 George Staikos 2004-12-04 17:15:06 UTC
CVS commit by staikos: 

assorted focus handling fixes
BUG: 94374


  M +3 -2      addfeeddialog.cpp   1.18
  M +5 -0      akregator_view.cpp   1.183
  M +2 -0      propertiesdialog.cpp   1.16


--- kdenonbeta/akregator/src/addfeeddialog.cpp  #1.17:1.18
@@ -91,2 +91,3 @@ void AddFeedDialog::fetchDiscovery(Feed 
 
 #include "addfeeddialog.moc"
+// vim: ts=4 sw=4 et

--- kdenonbeta/akregator/src/akregator_view.cpp  #1.182:1.183
@@ -1024,4 +1024,9 @@ void aKregatorView::slotFeedRemove()
         delete selectedNode;
         setTotalUnread(); 
+        if (m_tree->currentItem()) {
+            m_tree->currentItem()->setSelected(true);
+            slotNodeSelected(m_tree->selectedNode());
+        }
+        m_tree->setFocus();
         //m_part->setModified(true);
     }

--- kdenonbeta/akregator/src/propertiesdialog.cpp  #1.15:1.16
@@ -34,4 +34,5 @@ FeedPropertiesDialog::FeedPropertiesDial
     widget=new FeedPropertiesWidget(this);
     setMainWidget(widget);
+    widget->feedNameEdit->setFocus();
 }
 
@@ -189,2 +190,3 @@ void FeedPropertiesDialog::selectFeedNam
 
 #include "propertiesdialog.moc"
+// vim: ts=4 sw=4 et