patch from Alfredo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5800 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-12-10 00:59:59 +00:00
parent 6aa5125a49
commit b80ff8d1c8
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-12-10 John Levon <levon@movementarian.org>
* QRef.C: patch from Alfredo
2002-12-09 Lars Gullik Bjønnes <larsbj@birdstep.com>
* QAbout.C (build_dialog): use old over-eager version for 1.3.0.

View File

@ -73,7 +73,7 @@ void QRef::update_contents()
dialog_->nameED->setReadOnly(!nameAllowed() && !readOnly());
dialog_->typeCO->setCurrentItem(InsetRef::getType(params.getCmdName()));
dialog_->typeCO->setEnabled(!typeAllowed() && !readOnly());
dialog_->typeCO->setEnabled(typeAllowed() && !readOnly());
if (!typeAllowed())
dialog_->typeCO->setCurrentItem(0);
@ -111,8 +111,8 @@ bool QRef::nameAllowed()
bool QRef::typeAllowed()
{
return controller().docType() == ControlRef::LINUXDOC ||
controller().docType() == ControlRef::DOCBOOK;
return controller().docType() != ControlRef::LINUXDOC &&
controller().docType() != ControlRef::DOCBOOK;
}