summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-02-09 18:20:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-02-09 18:20:31 +0900
commit9189a0e97f85abc0d9dce7c22016e9c8d634b3b1 (patch)
treeb325ddbdbb024eb520bac7baca711e64b4804a47
parente13b91d5e431c2430dd4f52e297796593de99866 (diff)
downloadtdelibs-9189a0e97f85abc0d9dce7c22016e9c8d634b3b1.tar.gz
tdelibs-9189a0e97f85abc0d9dce7c22016e9c8d634b3b1.zip
tdefile: autocalculate folder size in KPropertiesDialog only for real local items.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--tdeio/tdefile/kpropertiesdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdeio/tdefile/kpropertiesdialog.cpp b/tdeio/tdefile/kpropertiesdialog.cpp
index fe2401191..ea2723fd0 100644
--- a/tdeio/tdefile/kpropertiesdialog.cpp
+++ b/tdeio/tdefile/kpropertiesdialog.cpp
@@ -1030,8 +1030,8 @@ KFilePropsPlugin::KFilePropsPlugin( KPropertiesDialog *_props )
sizelay->addWidget(m_sizeStopButton, 0);
sizelay->addStretch(10); // so that the buttons don't grow horizontally
- // auto-launch for local dirs only, and not for '/'
- if ( isLocal && !hasRoot )
+ // auto-launch for local dirs only, but not for '/' or medias
+ if ( isReallyLocal && !hasRoot )
{
m_sizeDetermineButton->setText( i18n("Refresh") );
slotSizeDetermine();