From: Peter Penz Date: Wed, 19 Nov 2008 19:02:04 +0000 (+0000) Subject: assure that no expensive operations are done when the Information Panel has been... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/11289b4fc3efbc074b668d4516cd896f8ade9761?ds=sidebyside assure that no expensive operations are done when the Information Panel has been opened at least once and closed again CCBUG: 151496 svn path=/trunk/KDE/kdebase/apps/; revision=886642 --- diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index 407640c4f..2c87f430d 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -80,7 +80,7 @@ void InfoSidebarPage::setUrl(const KUrl& url) { SidebarPage::setUrl(url); if (url.isValid() && !isEqualToShownUrl(url)) { - if (m_initialized) { + if (isVisible()) { cancelRequest(); m_shownUrl = url; showItemInfo(); @@ -92,7 +92,7 @@ void InfoSidebarPage::setUrl(const KUrl& url) void InfoSidebarPage::setSelection(const KFileItemList& selection) { - if (!m_initialized) { + if (!isVisible()) { return; } @@ -122,7 +122,7 @@ void InfoSidebarPage::setSelection(const KFileItemList& selection) void InfoSidebarPage::requestDelayedItemInfo(const KFileItem& item) { - if (!m_initialized) { + if (!isVisible()) { return; } @@ -162,7 +162,7 @@ void InfoSidebarPage::showEvent(QShowEvent* event) void InfoSidebarPage::resizeEvent(QResizeEvent* event) { - if (m_initialized) { + if (isVisible()) { // If the text inside the name label or the info label cannot // get wrapped, then the maximum width of the label is increased // so that the width of the information sidebar gets increased.