commit 394fc5cf15372eee1dbb80828a86c7b97abadeac Author: Richard Heck <rgh...@lyx.org> Date: Sun Nov 29 22:24:55 2015 -0500
Simplify logic. diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 7676356..977395d 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)