From becdcd01b4e783b4a72ad8d993daf438f3d1c559 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 12 Jul 2016 16:19:08 +0000 Subject: [PATCH] TabBar: fixed group issue git-svn-id: svn://ultimatepp.org/upp/trunk@10033 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/TabBar/TabBar.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uppsrc/TabBar/TabBar.cpp b/uppsrc/TabBar/TabBar.cpp index d3e092e2a..6be84d4de 100644 --- a/uppsrc/TabBar/TabBar.cpp +++ b/uppsrc/TabBar/TabBar.cpp @@ -633,7 +633,7 @@ void TabBar::DoStacking() Repos(); } -void TabBar::DoUnstacking() +void TabBar::DoUnstacking() { stackcount = 0; for (int i = 0; i < tabs.GetCount(); i++) @@ -670,6 +670,10 @@ void TabBar::SortStack(int stackix, int head, int tail) void TabBar::MakeGroups() { + for(const auto& tab : tabs) + if(FindGroup(tab.group) < 0) + NewGroup(tab.group); + groups[0].count = tabs.GetCount(); groups[0].first = 0; groups[0].last = tabs.GetCount() - 1;