┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.cpp
diff options
context:
space:
mode:
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();