Skip to content

Commit

Permalink
Better.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Dec 14, 2016
1 parent b392793 commit f79a3f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,15 +881,15 @@ void Project::onFileAdded(const Path &path)
void Project::onFileAddedOrModified(const Path &file)
{
const uint32_t fileId = Location::fileId(file);
debug() << file << "was modified" << fileId;
if (!fileId)
return;
// error() << file.fileName() << mCompileCommandsInfos.dir << file;
if (mIndexParseData.compileCommands.contains(fileId)) {
reloadCompileCommands();
return;
}

debug() << file << "was modified" << fileId;
if (!fileId)
return;
if (Server::instance()->suspended() || mSuspendedFiles.contains(fileId)) {
warning() << file << "is suspended. Ignoring modification";
return;
Expand Down

0 comments on commit f79a3f8

Please sign in to comment.