From: Bo Peng Date: Sun, 3 Aug 2008 22:26:01 +0000 (+0000) Subject: Fix a bug where spaces can not be appended tonameLE in the info dialoag X-Git-Tag: 1.6.10~3752 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4fa66a8d0a6ca73398b90cd66422dd8f58e57310;p=features.git Fix a bug where spaces can not be appended tonameLE in the info dialoag git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26043 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiInfo.cpp b/src/frontends/qt4/GuiInfo.cpp index 3a9a1433f8..4a838cc0ac 100644 --- a/src/frontends/qt4/GuiInfo.cpp +++ b/src/frontends/qt4/GuiInfo.cpp @@ -125,7 +125,10 @@ void GuiInfo::paramsToDialog() nameLE->blockSignals(true); int type = findToken(info_types, fromqstr(type_)); typeCO->setCurrentIndex(type >= 0 ? type : 0); - nameLE->setText(name_); + // Without this test, 'math-insert' (name_) will replace 'math-insert ' + // in nameLE and effectively disallow the input of spaces after a LFUN. + if (nameLE->text().trimmed() != name_) + nameLE->setText(name_); typeCO->blockSignals(false); nameLE->blockSignals(false); }