mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
fix external dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5568 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1690d45d92
commit
00c9ef1b84
@ -1,9 +1,13 @@
|
||||
2002-10-31 John Levon <levon@movementarian.org>
|
||||
|
||||
* qt2/QGraphics.C:
|
||||
* qt2/QGraphicsDialog.C:
|
||||
* qt2/QGraphicsDialog.h:
|
||||
* qt2/ui/QGraphicsDialog.ui: bb unit fixes
|
||||
* QExternal.C: fix crash, valid check
|
||||
|
||||
2002-10-31 John Levon <levon@movementarian.org>
|
||||
|
||||
* QGraphics.C:
|
||||
* QGraphicsDialog.C:
|
||||
* QGraphicsDialog.h:
|
||||
* ui/QGraphicsDialog.ui: bb unit fixes
|
||||
|
||||
2002-10-30 John Levon <levon@movementarian.org>
|
||||
|
||||
|
@ -74,7 +74,7 @@ string const & QExternal::helpText()
|
||||
{
|
||||
InsetExternal::Params & params = controller().params();
|
||||
|
||||
params.templ = controller().getTemplate(dialog_->externalCO->currentItem() + 1);
|
||||
params.templ = controller().getTemplate(dialog_->externalCO->currentItem());
|
||||
return params.templ.helpText;
|
||||
}
|
||||
|
||||
@ -86,15 +86,5 @@ void QExternal::apply()
|
||||
params.filename = dialog_->fileED->text().latin1();
|
||||
params.parameters = dialog_->paramsED->text().latin1();
|
||||
|
||||
params.templ = controller().getTemplate(dialog_->externalCO->currentItem() + 1);
|
||||
}
|
||||
|
||||
|
||||
bool QExternal::isValid()
|
||||
{
|
||||
bool const valid = !string(dialog_->fileED->text()).empty();
|
||||
dialog_->viewPB->setEnabled(valid);
|
||||
dialog_->editPB->setEnabled(valid);
|
||||
dialog_->updatePB->setEnabled(valid);
|
||||
return valid;
|
||||
params.templ = controller().getTemplate(dialog_->externalCO->currentItem());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user