1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 559674: Fix: New console allocated even if one is given

Change-Id: I922264bbff26e31d2a1a2aa000c3e8f272c1b5e9
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
This commit is contained in:
Martin Weber 2020-05-22 19:12:22 +02:00 committed by Alexander Fedorov
parent afdd68157b
commit 488cc91689

View file

@ -248,7 +248,8 @@ public class CompilerBuiltinsDetector {
return null; // no console to allocate
} else {
IProject project = buildConfiguration.getProject();
if (console != null) {
if (console == null) {
// need to allocate console, but none is given
String consoleId = CONSOLE_ID + "." + project.getName();
console = CCorePlugin.getDefault().getConsole(CONSOLE_ID, consoleId, null, null);
}