From f79a3f80011deaa43a7fda48c3a87eefb07a9f2d Mon Sep 17 00:00:00 2001 From: Anders Bakken Date: Tue, 13 Dec 2016 18:15:31 -0800 Subject: [PATCH] Better. --- src/Project.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Project.cpp b/src/Project.cpp index 67c98a37f..0cbc401bb 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -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;