diff options
| author | Peter Penz <[email protected]> | 2008-06-16 21:56:20 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-06-16 21:56:20 +0000 |
| commit | 8103ead940c5b680c613144ee588af5ed1ecfdd0 (patch) | |
| tree | 1d09fd32b59a9059e54dc90c036944896a1fa146 /src/infosidebarpage.cpp | |
| parent | 989cc7e0bf17394bae7772ea1fec26cf873eb588 (diff) | |
Details view related fixes: all columns except the name column should act as viewport.
svn path=/trunk/KDE/kdebase/apps/; revision=821229
Diffstat (limited to 'src/infosidebarpage.cpp')
| -rw-r--r-- | src/infosidebarpage.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |
