From a7fbcfbce9c716526bf5eb305c5adb9431a816f8 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 13 Feb 2007 15:24:08 +0000 Subject: [PATCH] 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 --- kdeeduui/kdeeduglossary.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() -- 2.47.3