diff --git a/kdecore/io/kdirwatch.cpp b/kdecore/io/kdirwatch.cpp index fa818a86..dda9523e 100644 --- a/kdecore/io/kdirwatch.cpp +++ b/kdecore/io/kdirwatch.cpp @@ -48,14 +48,14 @@ KDirWatch* KDirWatch::self() KDirWatch::KDirWatch (QObject* parent) : QObject(parent), d(new KDirWatchPrivate()) { - connect(d->watcher, SIGNAL(directoryChanged(QString)), this, SLOT(emitChanged(QString))); - connect(d->watcher, SIGNAL(fileChanged(QString)), this, SLOT(emitChanged(QString))); + connect(d->watcher, SIGNAL(directoryChanged(QString)), this, SLOT(setDirty(QString))); + connect(d->watcher, SIGNAL(fileChanged(QString)), this, SLOT(setDirty(QString))); } KDirWatch::~KDirWatch() { - disconnect(d->watcher, SIGNAL(directoryChanged(QString)), this, SLOT(emitChanged(QString))); - disconnect(d->watcher, SIGNAL(fileChanged(QString)), this, SLOT(emitChanged(QString))); + disconnect(d->watcher, SIGNAL(directoryChanged(QString)), this, SLOT(setDirty(QString))); + disconnect(d->watcher, SIGNAL(fileChanged(QString)), this, SLOT(setDirty(QString))); delete d; } @@ -144,11 +144,6 @@ void KDirWatch::setDeleted(const QString &file) emit deleted(file); } -void KDirWatch::emitChanged(const QString &path) -{ - setDirty(path); -} - #include "moc_kdirwatch.cpp" //sven diff --git a/kdecore/io/kdirwatch.h b/kdecore/io/kdirwatch.h index 1aefcc7e..3589a84b 100644 --- a/kdecore/io/kdirwatch.h +++ b/kdecore/io/kdirwatch.h @@ -205,9 +205,6 @@ public Q_SLOTS: */ void deleted(const QString &path); -private Q_SLOTS: - void emitChanged(const QString &path); - private: KDirWatchPrivate* d;