Simplify logic.

This commit is contained in:
Richard Heck 2015-11-29 22:24:55 -05:00
parent f5a9ee54e6
commit 394fc5cf15

View File

@ -2797,7 +2797,7 @@ bool GuiView::closeWorkAreaAll()
// We have to call count() each time, because it can happen that // We have to call count() each time, because it can happen that
// more than one splitter will disappear in one iteration (bug 5998). // more than one splitter will disappear in one iteration (bug 5998).
for (; d.splitter_->count() > empty_twa; ) { while (d.splitter_->count() > empty_twa) {
TabWorkArea * twa = d.tabWorkArea(empty_twa); TabWorkArea * twa = d.tabWorkArea(empty_twa);
if (twa->count() == 0) if (twa->count() == 0)