]> cloud.milkyroute.net Git - dolphin.git/commitdiff
assure that no expensive operations are done when the Information Panel has been...
authorPeter Penz <peter.penz19@gmail.com>
Wed, 19 Nov 2008 19:02:04 +0000 (19:02 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 19 Nov 2008 19:02:04 +0000 (19:02 +0000)
CCBUG: 151496

svn path=/trunk/KDE/kdebase/apps/; revision=886642

src/infosidebarpage.cpp

index 407640c4fc8b6972ef06ea91eb44b4270c6d6edc..2c87f430d9ef21f94b71da57a782507107a69611 100644 (file)
@@ -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.