mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-07 09:46:54 +00:00
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
This commit is contained in:
parent
bdfcd5f16a
commit
4fa66a8d0a
@ -125,7 +125,10 @@ void GuiInfo::paramsToDialog()
|
|||||||
nameLE->blockSignals(true);
|
nameLE->blockSignals(true);
|
||||||
int type = findToken(info_types, fromqstr(type_));
|
int type = findToken(info_types, fromqstr(type_));
|
||||||
typeCO->setCurrentIndex(type >= 0 ? type : 0);
|
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);
|
typeCO->blockSignals(false);
|
||||||
nameLE->blockSignals(false);
|
nameLE->blockSignals(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user