mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 19:35:36 +02:00
[252691] - Fixed bug which caused the action to always be enabled.
This commit is contained in:
parent
5db19ce9af
commit
f7eb3abbdd
1 changed files with 4 additions and 2 deletions
|
@ -118,8 +118,10 @@ abstract public class RetargetDebugContextAction implements IWorkbenchWindowActi
|
||||||
Object object = ss.getFirstElement();
|
Object object = ss.getFirstElement();
|
||||||
if (object instanceof IAdaptable) {
|
if (object instanceof IAdaptable) {
|
||||||
fTargetAdapter = getAdapter((IAdaptable) object);
|
fTargetAdapter = getAdapter((IAdaptable) object);
|
||||||
fAction.setEnabled(canPerformAction(fTargetAdapter, fDebugContext));
|
if (fTargetAdapter != null) {
|
||||||
return;
|
fAction.setEnabled(canPerformAction(fTargetAdapter, fDebugContext));
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue