From 8fd83ab2dc67ec22d1457f39bf12c5ace120af90 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 7 Feb 2008 15:03:07 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiSymbols.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiSymbols.cpp b/src/frontends/qt4/GuiSymbols.cpp index c1a911616d..3ca8dd214f 100644 --- a/src/frontends/qt4/GuiSymbols.cpp +++ b/src/frontends/qt4/GuiSymbols.cpp @@ -226,7 +226,8 @@ void GuiSymbols::on_symbolsLW_itemClicked(QListWidgetItem * item) QString const text = item->text(); if (text.isEmpty()) return; - chosenLE->insert(text); + if (chosenLE->isEnabled()) + chosenLE->insert(text); QString const category = getBlock(text.data()->unicode()); categoryCO->setCurrentIndex(categoryCO->findText(category)); }