aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2012-01-25 10:26:01 +0000
committerDamian Minkov <damencho@jitsi.org>2012-01-25 10:26:01 +0000
commit827588152ab64424ad99f8fc9048b0f70f4e9624 (patch)
treec8dea21c4364bdbc0c0a72836932014c2247a41c /src/net/java/sip/communicator
parent19a07a1681017f4abc11168a4831dbecad3d6eb2 (diff)
downloadjitsi-827588152ab64424ad99f8fc9048b0f70f4e9624.zip
jitsi-827588152ab64424ad99f8fc9048b0f70f4e9624.tar.gz
jitsi-827588152ab64424ad99f8fc9048b0f70f4e9624.tar.bz2
Fixes editing some old saved yahoo accounts.
Diffstat (limited to 'src/net/java/sip/communicator')
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/account/AccountRegWizardContainerImpl.java25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/account/AccountRegWizardContainerImpl.java b/src/net/java/sip/communicator/impl/gui/main/account/AccountRegWizardContainerImpl.java
index 6966901..86ba713 100644
--- a/src/net/java/sip/communicator/impl/gui/main/account/AccountRegWizardContainerImpl.java
+++ b/src/net/java/sip/communicator/impl/gui/main/account/AccountRegWizardContainerImpl.java
@@ -161,7 +161,30 @@ public class AccountRegWizardContainerImpl
public AccountRegistrationWizard getProtocolWizard(
ProtocolProviderService protocolProvider)
{
- return registeredWizards.get(protocolProvider.getProtocolDisplayName());
+ AccountRegistrationWizard res = registeredWizards.get(protocolProvider.getProtocolDisplayName());
+
+ // compatibility check, some protocols have changed name
+ // and when they have those name saved in configuration
+ // cannot be edited, so lets check whether there is a wizard
+ // with the same protocol name like the one of its provider
+ if(res == null)
+ {
+ //lets find matching protocol name in registered wizards
+ Iterator<AccountRegistrationWizard> iter =
+ registeredWizards.values().iterator();
+ while(iter.hasNext())
+ {
+ AccountRegistrationWizard wizard = iter.next();
+ if(wizard.getProtocolName()
+ .equals(protocolProvider.getProtocolName()))
+ {
+ res = wizard;
+ break;
+ }
+ }
+ }
+
+ return res;
}
/**