From ec0c1fdf3f7eb897db2b38d7460a117300a228ab Mon Sep 17 00:00:00 2001 From: unodgs Date: Fri, 7 Jan 2011 13:05:40 +0000 Subject: [PATCH] TabBar: Fixed restoring group in serialization (no more auto splitting editor when compiling in ide) git-svn-id: svn://ultimatepp.org/upp/trunk@2967 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/TabBar/TabBar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uppsrc/TabBar/TabBar.cpp b/uppsrc/TabBar/TabBar.cpp index 9ab915701..24485dc98 100644 --- a/uppsrc/TabBar/TabBar.cpp +++ b/uppsrc/TabBar/TabBar.cpp @@ -339,6 +339,8 @@ void TabBar::Set(const TabBar& t) tabs <<= t.tabs; groups.Clear(); groups <<= t.groups; + separators.Clear(); + separators <<= t.separators; group = t.group; stackcount = t.stackcount; @@ -2403,7 +2405,8 @@ void TabBar::Serialize(Stream& s) int g = GetGroup(); s % g; - SetGroup(g); + group = g; + Repos(); }