Don't insert symbols in the edit box if the control is disabled.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22839 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-07 15:03:07 +00:00
parent 0d7c79db6d
commit 8fd83ab2dc

View File

@ -226,7 +226,8 @@ void GuiSymbols::on_symbolsLW_itemClicked(QListWidgetItem * item)
QString const text = item->text(); QString const text = item->text();
if (text.isEmpty()) if (text.isEmpty())
return; return;
chosenLE->insert(text); if (chosenLE->isEnabled())
chosenLE->insert(text);
QString const category = getBlock(text.data()->unicode()); QString const category = getBlock(text.data()->unicode());
categoryCO->setCurrentIndex(categoryCO->findText(category)); categoryCO->setCurrentIndex(categoryCO->findText(category));
} }