[Digikam-devel] [digikam] /: KInotify and AlbumWatch fix for build/run on Windows.
Ananta Palani
anantapalani at gmail.com
Thu Nov 10 11:27:48 GMT 2011
Git commit c69e16d736e580a3e9249da7e537a3472070c9d4 by Ananta Palani.
Committed on 10/11/2011 at 12:26.
Pushed by palani into branch 'master'.
KInotify and AlbumWatch fix for build/run on Windows.
CCMAIL: digikam-devel at kde.org
M +2 -2 digikam/album/albumwatch.cpp
M +1 -1 libs/3rdparty/kinotify/kinotify.cpp
http://commits.kde.org/digikam/c69e16d736e580a3e9249da7e537a3472070c9d4
diff --git a/digikam/album/albumwatch.cpp b/digikam/album/albumwatch.cpp
index 402a8ac..1f62bfb 100644
--- a/digikam/album/albumwatch.cpp
+++ b/digikam/album/albumwatch.cpp
@@ -413,6 +413,8 @@ void AlbumWatch::connectToKDirWatch()
return;
}
+ d->dirWatch = new KDirWatch(this);
+
KDirWatch::Method m = d->dirWatch->internalMethod();
QString mName("FAM");
@@ -431,8 +433,6 @@ void AlbumWatch::connectToKDirWatch()
kDebug() << "KDirWatch method = " << mName;
- d->dirWatch = new KDirWatch(this);
-
connect(d->dirWatch, SIGNAL(dirty(QString)),
this, SLOT(slotDirWatchDirty(QString)));
}
diff --git a/libs/3rdparty/kinotify/kinotify.cpp b/libs/3rdparty/kinotify/kinotify.cpp
index b9a8813..d93c322 100644
--- a/libs/3rdparty/kinotify/kinotify.cpp
+++ b/libs/3rdparty/kinotify/kinotify.cpp
@@ -587,7 +587,7 @@ public:
};
KInotify::KInotify(QObject* parent) : QObject(parent), d(0) {}
KInotify::~KInotify() {}
-bool KInotify::available() const { return false; }
+bool KInotify::available() { return false; }
bool KInotify::watchingPath( const QString&) const { return false; }
bool KInotify::filterWatch( const QString &, WatchEvents & , WatchFlags&) { return false; }
bool KInotify::addWatch( const QString&, WatchEvents, WatchFlags) { return false; }
More information about the Digikam-devel
mailing list