From 72068adf9c59f416d98d8df2214a45b12d23b8fe Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 26 Mar 2008 10:32:20 +0000 Subject: [PATCH] * infinite loops are not good git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23968 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index b69f1393af..c86fa2d018 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1736,10 +1736,10 @@ bool GuiView::dispatch(FuncRequest const & cmd) // We cannot use a for loop as the buffer list cycles. Buffer * b = first; do { - if (b->isClean()) - continue; - saveBuffer(*b); - LYXERR(Debug::ACTION, "Saved " << b->absFileName()); + if (!b->isClean()) { + saveBuffer(*b); + LYXERR(Debug::ACTION, "Saved " << b->absFileName()); + } b = theBufferList().next(b); } while (b != first); message(_("All documents saved.")); -- 2.39.2