┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-11-19 19:02:04 +0000
committerPeter Penz <[email protected]>2008-11-19 19:02:04 +0000
commit11289b4fc3efbc074b668d4516cd896f8ade9761 (patch)
tree6d5e58488879ac7f835e95b5e8ccf85aa9822597 /src
parentb9c27913143d75bad1f16b7a749f33464bce3e00 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/infosidebarpage.cpp8
1 files changed, 4 insertions, 4 deletions
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.