File fix-kdirwatch-crash.diff of Package kdelibs3

Index: kio/kio/kdirwatch.cpp
===================================================================
--- kio/kio/kdirwatch.cpp	(revision 527249)
+++ kio/kio/kdirwatch.cpp	(working copy)
@@ -431,8 +431,8 @@ void KDirWatchPrivate::slotActivated()
               //(void) inotify_rm_watch( m_inotify_fd, e->wd );
               addEntry(0, QDir::cleanDirPath(e->path+"/.."), e, true);
             }
-            if ( event->mask & IN_CREATE ) {
-              kdDebug(7001) << "-->got create subfile signal for " << e->path << endl;
+            if ( event->mask & (IN_CREATE|IN_MOVED_TO) ) {
+              kdDebug(7001) << "-->got new subfile " << path << " in " << e->path << endl;
 
               Entry *sub_entry = e->m_entries.first();
               for(;sub_entry; sub_entry = e->m_entries.next())
openSUSE Build Service is sponsored by