mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +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];
|
ISubSystem subsystem = subsystems[i];
|
||||||
IConnectorService system = subsystem.getConnectorService();
|
IConnectorService system = subsystem.getConnectorService();
|
||||||
|
|
||||||
anyOk = !system.isConnected() && system.isPasswordCached();
|
anyOk = !system.isConnected() && system.isPasswordCached(true);
|
||||||
|
|
||||||
if (anyOk)
|
if (anyOk)
|
||||||
{
|
{
|
||||||
|
@ -92,7 +92,7 @@ public class SystemClearAllPasswordsAction extends SystemBaseAction {
|
||||||
{
|
{
|
||||||
IConnectorService system = ss.getConnectorService();
|
IConnectorService system = ss.getConnectorService();
|
||||||
|
|
||||||
if (system.isPasswordCached())
|
if (system.isPasswordCached() || system.isPasswordCached(true))
|
||||||
{
|
{
|
||||||
// get the user id
|
// get the user id
|
||||||
String userId = system.getUserId();
|
String userId = system.getUserId();
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class SystemClearPasswordAction extends SystemBaseAction
|
||||||
{
|
{
|
||||||
if (!(obj instanceof ISubSystem) ||
|
if (!(obj instanceof ISubSystem) ||
|
||||||
((ISubSystem)obj).getConnectorService().isConnected() ||
|
((ISubSystem)obj).getConnectorService().isConnected() ||
|
||||||
!(((ISubSystem)obj).getConnectorService().isPasswordCached())) {
|
!(((ISubSystem)obj).getConnectorService().isPasswordCached(true))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue