X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiApplication.cpp;h=030668f2e94c275b728e5d23eae09e9eb65722e0;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=db7b4042cd7aebae0a6d32acca0f2e533b8d2e0c;hpb=b9a507932f971ca1a0aaf76f7563c4b1bda9af7f;p=lyx.git diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index db7b4042cd..030668f2e9 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -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"); }