mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Bug 141842: Clear Password action is disabled
This commit is contained in:
parent
1370bbef90
commit
dfe61da0ca
2 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ public class SystemClearAllPasswordsAction extends SystemBaseAction {
|
|||
ISubSystem subsystem = subsystems[i];
|
||||
IConnectorService system = subsystem.getConnectorService();
|
||||
|
||||
anyOk = !system.isConnected() && system.isPasswordCached();
|
||||
anyOk = !system.isConnected() && system.isPasswordCached(true);
|
||||
|
||||
if (anyOk)
|
||||
{
|
||||
|
@ -92,7 +92,7 @@ public class SystemClearAllPasswordsAction extends SystemBaseAction {
|
|||
{
|
||||
IConnectorService system = ss.getConnectorService();
|
||||
|
||||
if (system.isPasswordCached())
|
||||
if (system.isPasswordCached() || system.isPasswordCached(true))
|
||||
{
|
||||
// get the user id
|
||||
String userId = system.getUserId();
|
||||
|
|
|
@ -57,7 +57,7 @@ public class SystemClearPasswordAction extends SystemBaseAction
|
|||
{
|
||||
if (!(obj instanceof ISubSystem) ||
|
||||
((ISubSystem)obj).getConnectorService().isConnected() ||
|
||||
!(((ISubSystem)obj).getConnectorService().isPasswordCached())) {
|
||||
!(((ISubSystem)obj).getConnectorService().isPasswordCached(true))) {
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue