From 9189a0e97f85abc0d9dce7c22016e9c8d634b3b1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 9 Feb 2023 18:20:31 +0900 Subject: tdefile: autocalculate folder size in KPropertiesDialog only for real local items. Signed-off-by: Michele Calgaro --- tdeio/tdefile/kpropertiesdialog.cpp | 4 ++-- 1 file 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(); -- cgit v1.2.3