From 58bd63debd0065caad6ca3bee28a7db1ad7a21cd Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Sat, 13 Mar 2010 20:18:24 +0100 Subject: [PATCH] Server: restore defaults on clearConversations() --- src/org/yaaic/model/Server.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/yaaic/model/Server.java b/src/org/yaaic/model/Server.java index 8768a04..84c3675 100644 --- a/src/org/yaaic/model/Server.java +++ b/src/org/yaaic/model/Server.java @@ -258,6 +258,10 @@ public class Server public void clearConversations() { conversations.clear(); + + // reset defaults + conversations.put(ServerInfo.DEFAULT_NAME, new ServerInfo()); + this.selected = ServerInfo.DEFAULT_NAME; } /**