* GuiApplication.cpp: prevent null pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33447 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-02-12 12:32:15 +00:00
parent 7929cad343
commit 6f3e447afa

View File

@ -1990,7 +1990,7 @@ QAbstractItemModel * GuiApplication::languageModel()
lang_model->setData(pl_item, toqstr(it->second.lang()), Qt::UserRole);
lang_model->setData(sp_item, qt_(it->second.display()), Qt::DisplayRole);
lang_model->setData(sp_item, toqstr(it->second.lang()), Qt::UserRole);
if (theSpellChecker()->hasDictionary(&it->second))
if (theSpellChecker() && theSpellChecker()->hasDictionary(&it->second))
lang_model->setData(sp_item, speller, Qt::DecorationRole);
lang_model->setData(th_item, qt_(it->second.display()), Qt::DisplayRole);
lang_model->setData(th_item, toqstr(it->second.lang()), Qt::UserRole);