Commit 2dd1f0d8 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

make m_changedFiles a set - for simplicity (and performance).

parent 011b3911
......@@ -120,7 +120,7 @@ struct FileManagerPrivate {
static FileManager *m_instance;
QMap<QString, FileState> m_states;
QStringList m_changedFiles;
QSet<QString> m_changedFiles;
QList<IFile *> m_filesWithoutWatch;
QMap<IFile *, QStringList> m_filesWithWatch;
QSet<QString> m_expectedFileNames;
......@@ -833,8 +833,8 @@ void FileManager::changedFile(const QString &fileName)
const bool wasempty = d->m_changedFiles.isEmpty();
if (!d->m_changedFiles.contains(fileName) && d->m_states.contains(fileName))
if (d->m_states.contains(fileName))
if (wasempty && !d->m_changedFiles.isEmpty()) {
QTimer::singleShot(200, this, SLOT(checkForReload()));
Supports Markdown
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