aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-chat-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 2ceb1e86d..903f18fbf 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -1875,11 +1875,11 @@ empathy_chat_window_get_default (gboolean room)
if (empathy_window_get_is_visible (GTK_WINDOW (dialog))) {
nb_rooms = empathy_chat_window_get_nb_rooms (chat_window);
- /* We add a new room only if the window has at least one room */
+ /* Skip the window if there aren't any rooms in it */
if (room && nb_rooms == 0)
continue;
- /* We add a new 1-1 chat only if the window has at least one 1-1 chat */
+ /* Skip the window if there aren't any 1-1 chats in it */
if (!room && nb_rooms > 0)
continue;