diff --git a/src/plugins/compilergcc/compilergcc.cpp b/src/plugins/compilergcc/compilergcc.cpp
index 73705184d..0d13c96fa 100644
--- a/src/plugins/compilergcc/compilergcc.cpp
+++ b/src/plugins/compilergcc/compilergcc.cpp
@@ -3931,10 +3931,12 @@ void CompilerGCC::NotifyJobDone(bool showNothingToBeDone)
ProjectManager *manager = Manager::Get()->GetProjectManager();
if (manager->GetIsRunning() == this)
manager->SetIsRunning(NULL);
-
- CodeBlocksEvent evt(cbEVT_COMPILER_FINISHED, 0, m_pProject, 0, this);
- evt.SetInt(m_LastExitCode);
- Manager::Get()->ProcessEvent(evt);
+ else
+ {
+ CodeBlocksEvent evt(cbEVT_COMPILER_FINISHED, 0, m_pProject, 0, this);
+ evt.SetInt(m_LastExitCode);
+ Manager::Get()->ProcessEvent(evt);
+ }
m_LastExitCode = 0;
}
}
I'm pretty green with building C::B from source and writing plug-ins so chances are that I missed something. Please bear with me!Mixing dll's from installed and compiled C::B might be the culprit.
- OS is Windows 10
- I manually changed the compilergcc.cpp file as per your git instructions.
- I compiled the C::B sources project from an installed C::B 16.01. I believe the changes were part of the compile as I got a compile error because of finger trouble the first time.
- I ran update.bat
- I opened the compiled C::B which complained about a few missing .dll files. Copied those over from the installed C::B.
- Opened C::B again, no missing .dll files.
- Installed the plug-in and tested.
What os are you using? How have you build the source? If it is from inside cb have you run the appropriate update script?