Bazaar-TabBarCtrl -- Fixed small bug

git-svn-id: svn://ultimatepp.org/upp/trunk@1943 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2010-01-24 23:33:00 +00:00
parent bd392f0fc1
commit 93fa960c99

View file

@ -523,7 +523,7 @@ void TabBar::DoCloseGroup(int n)
// we didn't cancel globally, now we check CancelClose()
// for each tab -- group gets removed ONLY if ALL of
// group tabs are closed
for(int i = 0; i < tabs.GetCount(); i++) {
for(int i = tabs.GetCount() - 1; i >= 0; i--) {
if(groupName == tabs[i].group && tabs.GetCount() > 1) {
Value v = tabs[i].key;
if(!CancelClose(v))