]> git.lyx.org Git - lyx.git/commitdiff
Don't forget bug in GuiImplementation::closeAllViews()
authorPeter Kümmel <syntheticpp@gmx.net>
Tue, 12 Dec 2006 10:54:37 +0000 (10:54 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Tue, 12 Dec 2006 10:54:37 +0000 (10:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16251 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiImplementation.C

index 1400fd6e978344b005c3f6049ce0accdbbbde011..4364f87c3421bfa363396e5ad345832c23274355 100644 (file)
@@ -100,7 +100,10 @@ bool GuiImplementation::closeAllViews()
        std::map<int, GuiView*>::const_iterator it;
        for (it = cmap.begin(); it != cmap.end(); ++it)
        {
-               it->second->close();
+               // TODO: return false when close event was ignored
+               //       e.g. quitWriteAll()->'Cancel'
+               //       maybe we need something like 'bool closeView()'
+               it->second->close(); 
                // unregisterd by the CloseEvent
        }