summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 92a644be..96531e5f 100644
--- a/src/core.py
+++ b/src/core.py
@@ -884,6 +884,10 @@ class Core(object):
self.command_win('%s' % tab.nb)
return
for tab in self.tabs:
+ if tab.get_color_state() == theme.COLOR_TAB_DISCONNECTED:
+ self.command_win('%s' % tab.nb)
+ return
+ for tab in self.tabs:
if isinstance(tab, tabs.ChatTab) and not tab.input.is_empty():
self.command_win('%s' % tab.nb)
return