]> git.lyx.org Git - features.git/commitdiff
Simplify logic.
authorRichard Heck <rgheck@lyx.org>
Mon, 30 Nov 2015 03:24:55 +0000 (22:24 -0500)
committerRichard Heck <rgheck@lyx.org>
Sat, 12 Dec 2015 18:00:20 +0000 (13:00 -0500)
src/frontends/qt4/GuiView.cpp

index 76763561dba9b532655947beb4f8f59bda313f71..977395d1c99c6046cee046560650d96aa8dd8f4e 100644 (file)
@@ -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)