X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/bafaf9496cc439c461e249057e5d913e9aa734fc..a4713e9ea4e7af747f4a406f68c907c1f09aac95:/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();