]> Git trees. - libqmvoc.git/commitdiff
Visually select the new item when switching to another item through the References...
authorPino Toscano <pino@kde.org>
Tue, 13 Feb 2007 15:24:08 +0000 (15:24 +0000)
committerPino Toscano <pino@kde.org>
Tue, 13 Feb 2007 15:24:08 +0000 (15:24 +0000)
BUG: 112414

svn path=/branches/KDE/3.5/kdeedu/libkdeedu/; revision=633229

kdeeduui/kdeeduglossary.cpp

index 41b6f24e60bdb1ebf910c04b24bea40e67c69d6e..5efb8a6dfecd852cbd00717208e38a88e4759702 100644 (file)
@@ -241,7 +241,12 @@ void GlossaryDialog::displayItem( const KURL& url, const KParts::URLArgs& )
                }
                ++it;
        }
-       slotClicked( found );
+       if ( found )
+       {
+               m_glosstree->ensureItemVisible( found );
+               m_glosstree->setCurrentItem( found );
+               slotClicked( found );
+       }
 }
 
 void GlossaryDialog::updateTree()