From 8103ead940c5b680c613144ee588af5ed1ecfdd0 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 16 Jun 2008 21:56:20 +0000 Subject: Details view related fixes: all columns except the name column should act as viewport. svn path=/trunk/KDE/kdebase/apps/; revision=821229 --- src/infosidebarpage.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/infosidebarpage.cpp') diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index b384f24e6..4cb4e22c6 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -94,6 +94,14 @@ void InfoSidebarPage::setSelection(const KFileItemList& selection) return; } + if ((selection.count() == 0) && (m_selection.count() == 0)) { + // The selection has not really changed, only the current index. + // QItemSelectionModel emits a signal in this case and it is less + // expensive doing the check this way instead of patching + // DolphinView::emitSelectionChanged(). + return; + } + m_selection = selection; const int count = selection.count(); -- cgit v1.3