summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tdelibs.old/stat-on-media.diff
blob: c8f25a9c8c0579ce5026ab170ffa61d3d5eccd3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: kio/kio/kdirwatch.cpp
===================================================================
--- kio/kio/kdirwatch.cpp.orig
+++ kio/kio/kdirwatch.cpp
@@ -743,7 +743,8 @@ bool KDirWatchPrivate::useINotify( Entry
 
 bool KDirWatchPrivate::useStat(Entry* e)
 {
-  if (KIO::probably_slow_mounted(e->path))
+  if ( e->path.startsWith("/media/") || (e->path == "/media")
+       || (KIO::probably_slow_mounted(e->path)) )
     useFreq(e, m_nfsPollInterval);
   else
     useFreq(e, m_PollInterval);