Enable the thing to be used again...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7023 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-05-23 10:40:18 +00:00
parent 983d23f87d
commit 77c23ed921
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2003-05-23 Angus Leeming <leeming@lyx.org>
* FormExternal.C (update): the default template is the first one
and the choice is always active.
2003-05-23 Lars Gullik Bjønnes <larsbj@gullik.net> 2003-05-23 Lars Gullik Bjønnes <larsbj@gullik.net>
* Toolbar_pimpl.C (displayToolbar): comment out unsused parameters. * Toolbar_pimpl.C (displayToolbar): comment out unsused parameters.

View File

@ -76,12 +76,9 @@ void FormExternal::update()
fl_set_input(dialog_->input_filename, params.filename.c_str()); fl_set_input(dialog_->input_filename, params.filename.c_str());
fl_set_input(dialog_->input_parameters, params.parameters.c_str()); fl_set_input(dialog_->input_parameters, params.parameters.c_str());
int const ID = controller().getTemplateNumber(params.templ.lyxName); int ID = controller().getTemplateNumber(params.templ.lyxName);
if (ID >= 0) { if (ID < 0) ID = 0;
setEnabled(dialog_->choice_template, true);
fl_set_choice(dialog_->choice_template, ID+1); fl_set_choice(dialog_->choice_template, ID+1);
} else
setEnabled(dialog_->choice_template, false);
updateComboChange(); updateComboChange();
} }