┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-05-06 20:46:01 +0000
committerPeter Penz <[email protected]>2007-05-06 20:46:01 +0000
commit44057746474840bdc983229ce02234ebe4f201d3 (patch)
tree31ca6787ac07773770ee7f0328ed320ea04ce3a8 /src/infosidebarpage.cpp
parentcdcb4b0166aefdd382d20e7ff3b5cb217ba54ba8 (diff)
optimization: don't try to show the meta information if the widget is invisible
svn path=/trunk/KDE/kdebase/apps/; revision=661864
Diffstat (limited to 'src/infosidebarpage.cpp')
-rw-r--r--src/infosidebarpage.cpp10
1 files changed, 10 insertions, 0 deletions
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();