Commit 660b210e authored by dt's avatar dt
Browse files

Write the last modified time initially into the cache.

parent 62220eef
......@@ -84,7 +84,7 @@ void FileWatcher::addFile(const QString &file)
const int count = ++m_fileCount[file];
Q_ASSERT(count > 0);
m_files.insert(file, QDateTime());
m_files.insert(file, QFileInfo(file).lastModified());
if (count == 1)
m_watcher->addPath(file);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment