From: Stefan Schimanski Date: Wed, 26 Mar 2008 10:32:20 +0000 (+0000) Subject: * infinite loops are not good X-Git-Tag: 1.6.10~5422 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=72068adf9c59f416d98d8df2214a45b12d23b8fe;p=features.git * infinite loops are not good git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23968 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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."));