diff options
| author | Frank Reininghaus <[email protected]> | 2013-05-22 18:34:25 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-05-22 18:34:25 +0200 |
| commit | 04e825d022c77baad3345269da7a210e95274f07 (patch) | |
| tree | a42a3ac163647986a7aedf9371895730ce0112f3 /src/kitemviews/kfileitemmodelrolesupdater.cpp | |
| parent | bf85483c99b549334cff3e83e861121748d5d5c1 (diff) | |
| parent | 2f51debbea28973c6c9117a0aae806d41f83b03b (diff) | |
Merge remote-tracking branch 'origin/KDE/4.10'
Diffstat (limited to 'src/kitemviews/kfileitemmodelrolesupdater.cpp')
| -rw-r--r-- | src/kitemviews/kfileitemmodelrolesupdater.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodelrolesupdater.cpp b/src/kitemviews/kfileitemmodelrolesupdater.cpp index 39d01e232..7cade10f5 100644 --- a/src/kitemviews/kfileitemmodelrolesupdater.cpp +++ b/src/kitemviews/kfileitemmodelrolesupdater.cpp @@ -630,6 +630,13 @@ void KFileItemModelRolesUpdater::slotDirWatchDirty(const QString& path) if (getSizeRole || getIsExpandableRole) { const int index = m_model->index(KUrl(path)); if (index >= 0) { + if (!m_model->fileItem(index).isDir()) { + // If INotify is used, KDirWatch issues the dirty() signal + // also for changed files inside the directory, even if we + // don't enable this behavior explicitly (see bug 309740). + return; + } + QHash<QByteArray, QVariant> data; const int count = subItemsCount(path); |
