mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
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:
parent
480e652825
commit
5ae8fe637e
1 changed files with 1 additions and 2 deletions
|
@ -295,8 +295,7 @@ bool NetAccess::statInternal( const KUrl & url, int details, StatSide side,
|
||||||
QWidget* window )
|
QWidget* window )
|
||||||
{
|
{
|
||||||
d->bJobOK = true; // success unless further error occurs
|
d->bJobOK = true; // success unless further error occurs
|
||||||
KIO::JobFlags flags = url.isLocalFile() ? KIO::HideProgressInfo : KIO::DefaultFlags;
|
KIO::StatJob * job = KIO::stat( url, KIO::HideProgressInfo );
|
||||||
KIO::StatJob * job = KIO::stat( url, flags );
|
|
||||||
job->ui()->setWindow (window);
|
job->ui()->setWindow (window);
|
||||||
job->setDetails( details );
|
job->setDetails( details );
|
||||||
job->setSide( side == SourceSide ? StatJob::SourceSide : StatJob::DestinationSide );
|
job->setSide( side == SourceSide ? StatJob::SourceSide : StatJob::DestinationSide );
|
||||||
|
|
Loading…
Add table
Reference in a new issue