]> git.lyx.org Git - features.git/commitdiff
Don't insert symbols in the edit box if the control is disabled.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 7 Feb 2008 15:03:07 +0000 (15:03 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 7 Feb 2008 15:03:07 +0000 (15:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22839 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiSymbols.cpp

index c1a911616d6dadbb9cd597f18468529ba275f0a7..3ca8dd214f3af94f82ca737e446db8354974d7b1 100644 (file)
@@ -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));
 }