aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/gui/main
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2007-09-28 13:21:16 +0000
committerYana Stamcheva <yana@jitsi.org>2007-09-28 13:21:16 +0000
commit579f7015f08720174be17bb6f8b5b454959fc5bc (patch)
treed87f81241181a9166ee9ac6be004e704dbbb6466 /src/net/java/sip/communicator/impl/gui/main
parent36779fe4dc9f31f58b4b03567fd64caac727327f (diff)
downloadjitsi-579f7015f08720174be17bb6f8b5b454959fc5bc.zip
jitsi-579f7015f08720174be17bb6f8b5b454959fc5bc.tar.gz
jitsi-579f7015f08720174be17bb6f8b5b454959fc5bc.tar.bz2
Correctly remove chat server from the chat rooms list.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main')
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java
index 8841109..d4897ee 100644
--- a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java
+++ b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java
@@ -141,12 +141,14 @@ public class ChatRoomsList
{
Object o = listModel.get(i);
- if((o instanceof MultiUserChatServerWrapper)
- || i == listModel.getSize() - 1)
+ if (o instanceof MultiUserChatServerWrapper)
{
- listModel.removeRange(serverIndex, i);
+ listModel.removeRange(serverIndex, i - 1);
break;
}
+
+ if (i == listModel.getSize() - 1)
+ listModel.removeRange(serverIndex, i);
}
ConfigurationService configService
@@ -228,8 +230,6 @@ public class ChatRoomsList
listModel.addElement(chatRoomWrapper);
}
- String chatRoomStatus = Constants.OFFLINE_STATUS;
-
ConfigurationManager.updateChatRoom(
chatRoomWrapper.getParentProvider(),
chatRoomWrapper.getChatRoomID(),