mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-14 12:25:11 +00:00
Simplify logic.
This commit is contained in:
parent
f5a9ee54e6
commit
394fc5cf15
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user