From 44057746474840bdc983229ce02234ebe4f201d3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 6 May 2007 20:46:01 +0000 Subject: optimization: don't try to show the meta information if the widget is invisible svn path=/trunk/KDE/kdebase/apps/; revision=661864 --- src/infosidebarpage.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/infosidebarpage.cpp') diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index 530d1fb30..d900945e8 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -130,6 +130,12 @@ void InfoSidebarPage::setSelection(const KFileItemList& selection) showItemInfo(); } +void InfoSidebarPage::showEvent(QShowEvent* event) +{ + SidebarPage::showEvent(event); + showItemInfo(); +} + void InfoSidebarPage::requestDelayedItemInfo(const KUrl& url) { cancelRequest(); @@ -143,6 +149,10 @@ void InfoSidebarPage::requestDelayedItemInfo(const KUrl& url) void InfoSidebarPage::showItemInfo() { + if (!isVisible()) { + return; + } + cancelRequest(); const KFileItemList& selectedItems = selection(); -- cgit v1.3