Commit 2967cc3b authored by Rafał Malinowski's avatar Rafał Malinowski

gui: #2881 fixed: after some imported configuration no contacts are displayed at all

Signed-off-by: Rafał Malinowski's avatarRafał Przemysław Malinowski <rafal.przemyslaw.malinowski@gmail.com>
parent 8d616c1e
+++ version 1.2
* gui: #2881 fixed: after some imported configuration no contacts are displayed at all (Vogel)
+++ version 1.1
* tabs: #2867 fixed: open in new window/tab works properly (Vogel)
* jabber: #2861 fixed: double messages removed (Vogel)
......
......@@ -147,7 +147,10 @@ Group GroupTabBar::groupAt(int index) const
GroupFilter GroupTabBar::groupFilter() const
{
return groupFilterAt(currentIndex());
if (Configuration.displayGroupTabs())
return groupFilterAt(currentIndex());
else
return GroupFilter{GroupFilterEverybody};
}
GroupFilter GroupTabBar::groupFilterAt(int index) const
......@@ -169,7 +172,11 @@ QVector<GroupFilter> GroupTabBar::groupFilters() const
void GroupTabBar::currentChangedSlot(int index)
{
Configuration.setCurrentGroupTab(index);
emit currentGroupFilterChanged(groupFilterAt(index));
if (Configuration.displayGroupTabs())
emit currentGroupFilterChanged(groupFilterAt(index));
else
emit currentGroupFilterChanged(GroupFilter{GroupFilterEverybody});
}
void GroupTabBar::contextMenuEvent(QContextMenuEvent *event)
......
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