Browse Source

Fix Konqueror not dependably updating the file pane with directory and file

changes. Thanks to Simon St. James, who posted the patch almost 7 years ago
to the KDE3 bug tracker. This closes bug report 756.
tags/r14.0.0
Darrell Anderson 7 years ago
parent
commit
1e657f6a57
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      kio/kio/kdirwatch.cpp

+ 3
- 0
kio/kio/kdirwatch.cpp View File

@@ -1155,6 +1155,7 @@ int KDirWatchPrivate::scanEntry(Entry* e)
1155 1155
     if(!e->dirty) return NoChange;
1156 1156
     e->dirty = false;
1157 1157
   }
1158
+  if (e->isDir) return Changed;
1158 1159
 #endif
1159 1160
 
1160 1161
   // Shouldn't happen: Ignore "unknown" notification method
@@ -1184,6 +1185,8 @@ int KDirWatchPrivate::scanEntry(Entry* e)
1184 1185
   if (exists) {
1185 1186
 
1186 1187
     if (e->m_status == NonExistent) {
1188
+      // ctime is the 'creation time' on windows, but with qMax
1189
+      // we get the latest change of any kind, on any platform.
1187 1190
       e->m_ctime = stat_buf.st_ctime;
1188 1191
       e->m_status = Normal;
1189 1192
       e->m_nlink = stat_buf.st_nlink;

Loading…
Cancel
Save