Commit 87bbf473 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist

MessageWindow: When grouped by type, show contact's name if only one conversation

When chat windows are grouped by type, the window title is either Chats or Group Chats.
If there is only one conversation of either type, the window's title now shows the
contact's or group chat's name.
parent b262d5ad
......@@ -520,8 +520,12 @@ class MessageWindow:
# Show the plural form since number of tabs > 1
if self.type_ == 'chat':
label = Q_('?Noun:Chats')
if self.get_num_controls() == 1:
label = name
elif self.type_ == 'gc':
label = _('Groupchats')
label = _('Group Chats')
if self.get_num_controls() == 1:
label = name
label = _('Private Chats')
elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment