Commit 5c50e450 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Make sure the "modified" signals from the fs are received.

For some reason, KDirWatch was signaling the modified CMakeCache.txt
files as "created". Listen to that

BUG: 287254
parent db1685a8
...@@ -641,6 +641,7 @@ KDevelop::ProjectFolderItem* CMakeManager::import( KDevelop::IProject *project ) ...@@ -641,6 +641,7 @@ KDevelop::ProjectFolderItem* CMakeManager::import( KDevelop::IProject *project )
w->setObjectName(project->name()+"_ProjectWatcher"); w->setObjectName(project->name()+"_ProjectWatcher");
w->addFile(cachefile.toLocalFile()); w->addFile(cachefile.toLocalFile());
connect(w, SIGNAL(dirty(QString)), this, SLOT(dirtyFile(QString))); connect(w, SIGNAL(dirty(QString)), this, SLOT(dirtyFile(QString)));
connect(w, SIGNAL(created(QString)), this, SLOT(dirtyFile(QString)));
connect(w, SIGNAL(deleted(QString)), this, SLOT(deletedWatched(QString))); connect(w, SIGNAL(deleted(QString)), this, SLOT(deletedWatched(QString)));
m_watchers[project] = w; m_watchers[project] = w;
Q_ASSERT(m_rootItem->rowCount()==0); Q_ASSERT(m_rootItem->rowCount()==0);
......
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