]> git.lyx.org Git - features.git/commitdiff
* infinite loops are not good
authorStefan Schimanski <sts@lyx.org>
Wed, 26 Mar 2008 10:32:20 +0000 (10:32 +0000)
committerStefan Schimanski <sts@lyx.org>
Wed, 26 Mar 2008 10:32:20 +0000 (10:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23968 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index b69f1393af50ee3fda85d5b58ebf4cc4f37d5a93..c86fa2d018a61dade1642bebba4381214d89e5e2 100644 (file)
@@ -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."));