if(selIndex != -1) {
selectedCdmInstance = selectedCsii.getInstanceFromName(comboCdmInstance.getItem(selIndex));
- if(loadLoginPrefs && !isDevRemoteSource) {
+ if(loadLoginPrefs) {
readPrefCredentials();
}
}
}
private String getUsernamePrefKey() {
- return selectedCsii.toString(selectedCdmInstance.getName(), getPort()) + USERNAME_SUFFIX;
+ return selectedCsii.toString(selectedCdmInstance.getName(), isDevRemoteSource?getPort():-1) + USERNAME_SUFFIX;
}
private String getPasswordPrefKey() {
- return selectedCsii.toString(selectedCdmInstance.getName(), getPort()) + PASSWORD_SUFFIX;
+ return selectedCsii.toString(selectedCdmInstance.getName(), isDevRemoteSource?getPort():-1) + PASSWORD_SUFFIX;
}
private boolean validateLogin(ICdmRemoteSource remoteSource) {
Display.getDefault().asyncExec(new Runnable() {
@Override
public void run() {
- if(!isDevRemoteSource) {
+ if(selectedCdmInstance!=null){
if(isRememberMe()) {
persistPrefCredentials();
}else{
- removePrefCredentials();
+ removePrefCredentials();
}
persistPrefLastServerInstance();
}