mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 291905 RefsTab control visibility incorrect when multiple configurations are selected.
This commit is contained in:
parent
ed2b0017e9
commit
dab890856f
1 changed files with 4 additions and 2 deletions
|
@ -183,7 +183,7 @@ public class RefsTab extends AbstractCPropertyTab {
|
||||||
if (page.isMultiCfg()) {
|
if (page.isMultiCfg()) {
|
||||||
setAllVisible(false, null);
|
setAllVisible(false, null);
|
||||||
} else {
|
} else {
|
||||||
if ( !usercomp.getVisible())
|
if (!usercomp.isVisible())
|
||||||
setAllVisible(true, null);
|
setAllVisible(true, null);
|
||||||
initData();
|
initData();
|
||||||
}
|
}
|
||||||
|
@ -326,11 +326,13 @@ public class RefsTab extends AbstractCPropertyTab {
|
||||||
// This page can be displayed for project only
|
// This page can be displayed for project only
|
||||||
@Override
|
@Override
|
||||||
public boolean canBeVisible() {
|
public boolean canBeVisible() {
|
||||||
return page.isForProject() && !page.isMultiCfg();
|
return page.isForProject();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void performDefaults() {
|
protected void performDefaults() {
|
||||||
|
if (!usercomp.isVisible())
|
||||||
|
return;
|
||||||
getResDesc().getConfiguration().setReferenceInfo(new HashMap<String, String>());
|
getResDesc().getConfiguration().setReferenceInfo(new HashMap<String, String>());
|
||||||
initData();
|
initData();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue