]> 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 bc532de05898a6dd0dab88c03b1fc6059d88e1c3..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");
                }
@@ -1421,7 +1420,7 @@ void GuiApplication::setGuiLanguage()
        setRcGuiLanguage();
 
        QString const default_language = toqstr(Messages::defaultLanguage());
-       LYXERR(Debug::LOCALE, "Tring to set default locale to: " << default_language);
+       LYXERR(Debug::LOCALE, "Trying to set default locale to: " << default_language);
        QLocale const default_locale(default_language);
        QLocale::setDefault(default_locale);
 
@@ -1434,7 +1433,7 @@ void GuiApplication::setGuiLanguage()
        // c.f. http://doc.trolltech.com/4.1/qtranslator.html#load
        if (!d->qt_trans_.load(language_name,
                        QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
-               LYXERR(Debug::LOCALE, "Could not find  Qt translations for locale "
+               LYXERR(Debug::LOCALE, "Could not find Qt translations for locale "
                        << language_name);
        } else {
                LYXERR(Debug::LOCALE, "Successfully installed Qt translations for locale "
@@ -1492,8 +1491,8 @@ QAbstractItemModel * GuiApplication::languageModel()
        QStandardItemModel * lang_model = new QStandardItemModel(this);
        lang_model->insertColumns(0, 1);
        int current_row;
-       Languages::const_iterator it = languages.begin();
-       Languages::const_iterator end = languages.end();
+       Languages::const_iterator it = lyx::languages.begin();
+       Languages::const_iterator end = lyx::languages.end();
        for (; it != end; ++it) {
                current_row = lang_model->rowCount();
                lang_model->insertRows(current_row, 1);