kio: hide of progress of stat() jobs done by KIO::NetAccess

now that stat() is used for MIME type determination it is used in lots of
places and progress should not be shown more often than it should

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-12 07:20:35 +03:00
parent 480e652825
commit 5ae8fe637e

View file

@ -295,8 +295,7 @@ bool NetAccess::statInternal( const KUrl & url, int details, StatSide side,
QWidget* window )
{
d->bJobOK = true; // success unless further error occurs
KIO::JobFlags flags = url.isLocalFile() ? KIO::HideProgressInfo : KIO::DefaultFlags;
KIO::StatJob * job = KIO::stat( url, flags );
KIO::StatJob * job = KIO::stat( url, KIO::HideProgressInfo );
job->ui()->setWindow (window);
job->setDetails( details );
job->setSide( side == SourceSide ? StatJob::SourceSide : StatJob::DestinationSide );