mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
Revert "kio: use own directory watcher for directory lister cache"
This reverts commit dabd0b9067
.
This commit is contained in:
parent
3bd1f98e75
commit
8be347e351
2 changed files with 3 additions and 5 deletions
|
@ -49,15 +49,14 @@
|
|||
K_GLOBAL_STATIC(KDirListerCache, kDirListerCache)
|
||||
|
||||
KDirListerCache::KDirListerCache()
|
||||
: itemsCached( 10 ), // keep the last 10 directories around
|
||||
dirwatch(new KDirWatch(this))
|
||||
: itemsCached( 10 ) // keep the last 10 directories around
|
||||
{
|
||||
//kDebug(7004);
|
||||
|
||||
connect( &pendingUpdateTimer, SIGNAL(timeout()), this, SLOT(processPendingUpdates()) );
|
||||
pendingUpdateTimer.setSingleShot( true );
|
||||
|
||||
connect( dirwatch, SIGNAL(dirty(QString)),
|
||||
connect( KDirWatch::self(), SIGNAL(dirty(QString)),
|
||||
this, SLOT(slotFileDirty(QString)) );
|
||||
|
||||
kdirnotify = new org::kde::KDirNotify(QString(), QString(), QDBusConnection::sessionBus(), this);
|
||||
|
@ -81,7 +80,7 @@ KDirListerCache::~KDirListerCache()
|
|||
itemsCached.clear();
|
||||
directoryData.clear();
|
||||
|
||||
delete dirwatch;
|
||||
KDirWatch::self()->disconnect( this );
|
||||
}
|
||||
|
||||
// setting _reload to true will emit the old files and
|
||||
|
|
|
@ -433,7 +433,6 @@ private:
|
|||
// this is why we need to remember those files here.
|
||||
QSet<KFileItem*> pendingRemoteUpdates;
|
||||
|
||||
KDirWatch *dirwatch;
|
||||
// the KDirNotify signals
|
||||
OrgKdeKDirNotifyInterface *kdirnotify;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue