From: Pino Toscano Date: Tue, 13 Feb 2007 15:24:08 +0000 (+0000) Subject: Visually select the new item when switching to another item through the References... X-Git-Tag: v3.5.7~1 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=a7fbcfbce9c716526bf5eb305c5adb9431a816f8;p=libqmvoc.git Visually select the new item when switching to another item through the References links. BUG: 112414 svn path=/branches/KDE/3.5/kdeedu/libkdeedu/; revision=633229 --- diff --git a/kdeeduui/kdeeduglossary.cpp b/kdeeduui/kdeeduglossary.cpp index 41b6f24..5efb8a6 100644 --- a/kdeeduui/kdeeduglossary.cpp +++ b/kdeeduui/kdeeduglossary.cpp @@ -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()