mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +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:
parent
afdd68157b
commit
488cc91689
1 changed files with 2 additions and 1 deletions
|
@ -248,7 +248,8 @@ public class CompilerBuiltinsDetector {
|
||||||
return null; // no console to allocate
|
return null; // no console to allocate
|
||||||
} else {
|
} else {
|
||||||
IProject project = buildConfiguration.getProject();
|
IProject project = buildConfiguration.getProject();
|
||||||
if (console != null) {
|
if (console == null) {
|
||||||
|
// need to allocate console, but none is given
|
||||||
String consoleId = CONSOLE_ID + "." + project.getName();
|
String consoleId = CONSOLE_ID + "." + project.getName();
|
||||||
console = CCorePlugin.getDefault().getConsole(CONSOLE_ID, consoleId, null, null);
|
console = CCorePlugin.getDefault().getConsole(CONSOLE_ID, consoleId, null, null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue