diff options
Diffstat (limited to 'graphics/digikam/patches/patch-core_app_album_albumwatch.cpp')
-rw-r--r-- | graphics/digikam/patches/patch-core_app_album_albumwatch.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/digikam/patches/patch-core_app_album_albumwatch.cpp b/graphics/digikam/patches/patch-core_app_album_albumwatch.cpp new file mode 100644 index 00000000000..deab5663335 --- /dev/null +++ b/graphics/digikam/patches/patch-core_app_album_albumwatch.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-core_app_album_albumwatch.cpp,v 1.1 2014/11/15 21:15:18 markd Exp $ + +Don't watch individual files on NetBSD - runs out of file descriptors + +--- core/app/album/albumwatch.cpp.orig 2013-05-13 07:51:25.000000000 +0000 ++++ core/app/album/albumwatch.cpp +@@ -278,7 +278,7 @@ void AlbumWatch::slotAlbumAdded(Album* a + // Disable file watch for OS X and Windows and hope for future + // improvement (possibly with the improvements planned for + // QFileSystemWatcher in Qt 5.1) +-#if defined(Q_WS_MAC) || defined(Q_WS_WIN) ++#if defined(Q_WS_MAC) || defined(Q_WS_WIN) || defined(Q_OS_NETBSD) + d->dirWatch->addDir(dir, KDirWatch::WatchDirOnly); + #else + d->dirWatch->addDir(dir, KDirWatch::WatchFiles | KDirWatch::WatchDirOnly); |