]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiApplication.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiApplication.cpp
index db7b4042cd7aebae0a6d32acca0f2e533b8d2e0c..030668f2e94c275b728e5d23eae09e9eb65722e0 100644 (file)
@@ -226,6 +226,7 @@ PngMap sorted_png_map[] = {
        { "Cap", "cap2" },
        { "Cup", "cup2" },
        { "Delta", "delta2" },
+       { "Diamond", "diamond2" },
        { "Downarrow", "downarrow2" },
        { "Gamma", "gamma2" },
        { "Lambda", "lambda2" },
@@ -949,10 +950,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                // Set current_view_ to zero to forbid GuiWorkArea::redraw()
                // to skip the refresh.
                current_view_ = 0;
-               BufferList::iterator it = theBufferList().begin();
-               BufferList::iterator const end = theBufferList().end();
-               for (; it != end; ++it)
-                       (*it)->changed();
+               theBufferList().changed(false);
                // Restore current_view_
                current_view_ = view;
                break;
@@ -1022,6 +1020,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                Buffer * buf = current_view_->loadDocument(fname, false);
                if (buf) {
                        current_view_->setBuffer(buf);
+                       buf->setReadonly(true);
                        buf->updateLabels();
                        buf->errors("Parse");
                }