diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-06-19 19:35:05 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-20 02:46:38 +0200 |
commit | 638a47b531b7c4c4cbcb271ec63bb1177df9486d (patch) | |
tree | 83a5a5881bea66926b5c3cd3ba54227fbdc57eb0 | |
parent | 74fb9bd07b2901494ab25724b27aba1f58a84ab1 (diff) | |
download | tdelibs-638a47b531b7c4c4cbcb271ec63bb1177df9486d.tar.gz tdelibs-638a47b531b7c4c4cbcb271ec63bb1177df9486d.zip |
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.
(cherry picked from commit 1e657f6a57be442f4acf7ecae843c644e4a68ac5)
-rw-r--r-- | kio/kio/kdirwatch.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kio/kio/kdirwatch.cpp b/kio/kio/kdirwatch.cpp index cd32440b5..330e6cd39 100644 --- a/kio/kio/kdirwatch.cpp +++ b/kio/kio/kdirwatch.cpp @@ -1155,6 +1155,7 @@ int KDirWatchPrivate::scanEntry(Entry* e) if(!e->dirty) return NoChange; e->dirty = false; } + if (e->isDir) return Changed; #endif // Shouldn't happen: Ignore "unknown" notification method @@ -1184,6 +1185,8 @@ int KDirWatchPrivate::scanEntry(Entry* e) if (exists) { if (e->m_status == NonExistent) { + // ctime is the 'creation time' on windows, but with qMax + // we get the latest change of any kind, on any platform. e->m_ctime = stat_buf.st_ctime; e->m_status = Normal; e->m_nlink = stat_buf.st_nlink; |