Fixes "Remove contact" message when the account is not logged in.

cusax-fix
Yana Stamcheva 13 years ago
parent 114f31268c
commit 501fe9d6a2

@ -374,6 +374,7 @@ service.gui.REMOVE_ACCOUNT=&Remove account
service.gui.REMOVE_ACCOUNT_MESSAGE=Are you sure you want to remove this account?
service.gui.REMOVE_CONTACT=&Remove contact
service.gui.REMOVE_CONTACT_TEXT=<DIV>Are you sure you want to remove <B> {0} </B><BR>from your contact list?</DIV>
service.gui.REMOVE_CONTACT_NOT_CONNECTED=You need to be connected in order to remove this contact. Please sign in and try again.
service.gui.REMOVE_GROUP=&Remove group
service.gui.REMOTELY_ON_HOLD_STATUS=Remotely on hold
service.gui.RENAME=&Rename

@ -385,8 +385,7 @@ public void actionPerformed(ActionEvent e)
GuiActivator.getResources().getI18NString(
"service.gui.ADD_CONTACT_ERROR_TITLE"),
GuiActivator.getResources().getI18NString(
"service.gui.ADD_CONTACT_NOT_CONNECTED",
new String[]{contactAddress}),
"service.gui.ADD_CONTACT_NOT_CONNECTED"),
ErrorDialog.WARNING)
.showDialog();

@ -380,6 +380,20 @@ public RemoveContactThread(Contact contact)
public void run()
{
if (!contact.getProtocolProvider().isRegistered())
{
new ErrorDialog(
GuiActivator.getUIService().getMainFrame(),
GuiActivator.getResources().getI18NString(
"service.gui.ADD_CONTACT_ERROR_TITLE"),
GuiActivator.getResources().getI18NString(
"service.gui.REMOVE_CONTACT_NOT_CONNECTED"),
ErrorDialog.WARNING)
.showDialog();
return;
}
try
{
if(Constants.REMOVE_CONTACT_ASK)

Loading…
Cancel
Save