1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

[187711] use action.isChecked() to determine new toggle state - not the view flag

This commit is contained in:
David McKnight 2008-01-04 16:17:37 +00:00
parent 794ccd8169
commit d4c902100a

View file

@ -469,7 +469,7 @@ public class LinkWithSystemViewAction implements IViewActionDelegate {
public void run(IAction action) {
if (_systemViewPart != null){
boolean isToggled = _systemViewPart.isLinkingEnabled();
boolean isToggled = action.isChecked();
_systemViewPart.setLinkingEnabled(!isToggled, _linker);
}