mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +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();
|
||||
if (object instanceof IAdaptable) {
|
||||
fTargetAdapter = getAdapter((IAdaptable) object);
|
||||
fAction.setEnabled(canPerformAction(fTargetAdapter, fDebugContext));
|
||||
return;
|
||||
if (fTargetAdapter != null) {
|
||||
fAction.setEnabled(canPerformAction(fTargetAdapter, fDebugContext));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue