mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
6aa5125a49
commit
b80ff8d1c8
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user