diff options
| author | Peter Penz <[email protected]> | 2008-07-01 19:08:17 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-07-01 19:08:17 +0000 |
| commit | 3da35b5c1cb782cec7c5faef47ccf65be0c8d210 (patch) | |
| tree | 7f9500bf3cb89fccd105c88165c27b091f980c15 /src/dolphinstatusbar.cpp | |
| parent | 2f0c966c30a0c3bd8df2410865d02ab8ac0b7a25 (diff) | |
fixed wrong logic for showing the space info: if the progress bar is shown, the space info may never be shown
svn path=/trunk/KDE/kdebase/apps/; revision=826897
Diffstat (limited to 'src/dolphinstatusbar.cpp')
| -rw-r--r-- | src/dolphinstatusbar.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp index 84012e438..bd9b8bee8 100644 --- a/src/dolphinstatusbar.cpp +++ b/src/dolphinstatusbar.cpp @@ -116,7 +116,7 @@ void DolphinStatusBar::setProgress(int percent) m_progressBar->setValue(m_progress); if (!m_progressBar->isVisible() || (percent == 100)) { - QTimer::singleShot(500, this, SLOT(updateProgressInfo())); + QTimer::singleShot(300, this, SLOT(updateProgressInfo())); } const QString& defaultText = m_messageLabel->defaultText(); @@ -179,13 +179,12 @@ void DolphinStatusBar::showSpaceInfo() const bool isProgressBarVisible = m_progressBar->isVisible(); if (m_spaceInfo->isVisible()) { - // The space information is shown currently. Hide it - // if the progress bar is visible or if the status bar - // text does not fit into the available width. - if (isProgressBarVisible || (widthGap > 0)) { + // The space information is shown currently. Hide it if + // the status bar text does not fit into the available width. + if (widthGap > 0) { m_spaceInfo->hide(); } - } else if (widthGap + m_spaceInfo->width() <= 0) { + } else if (!isProgressBarVisible && (widthGap + m_spaceInfo->width() <= 0)) { m_spaceInfo->show(); } } |
