From 394fc5cf15372eee1dbb80828a86c7b97abadeac Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 29 Nov 2015 22:24:55 -0500 Subject: [PATCH] Simplify logic. --- src/frontends/qt4/GuiView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 76763561db..977395d1c9 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -2797,7 +2797,7 @@ bool GuiView::closeWorkAreaAll() // We have to call count() each time, because it can happen that // 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); if (twa->count() == 0) -- 2.39.2