mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
* 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:
parent
7929cad343
commit
6f3e447afa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user