From 4939ae662fad860d8355a799f2d7121fe538ee92 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 6 Dec 2007 19:38:24 +0000 Subject: fixed issue that the information panel shows wrong meta data when having split views in combination with selected items BUG: 151644 svn path=/trunk/KDE/kdebase/apps/; revision=745669 --- src/dolphinview.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 0b8fe5883..c2ea5ff28 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -147,6 +147,7 @@ void DolphinView::setActive(bool active) } m_active = active; + m_selectionModel->clearSelection(); QColor color = KColorScheme(QPalette::Active, KColorScheme::View).background().color(); if (active) { @@ -816,7 +817,7 @@ void DolphinView::updateCutItems() void DolphinView::showHoverInformation(const KFileItem& item) { - if (hasSelection()) { + if (hasSelection() || !m_active) { return; } @@ -825,7 +826,9 @@ void DolphinView::showHoverInformation(const KFileItem& item) void DolphinView::clearHoverInformation() { - emit requestItemInfo(KFileItem()); + if (m_active) { + emit requestItemInfo(KFileItem()); + } } -- cgit v1.3