]> git.lyx.org Git - features.git/commitdiff
Enable the thing to be used again...
authorAngus Leeming <leeming@lyx.org>
Fri, 23 May 2003 10:40:18 +0000 (10:40 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 23 May 2003 10:40:18 +0000 (10:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7023 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormExternal.C

index 38e88109eb5dcb63de005bbd9dd621508433981e..7e4a25f4ab1cfa2c6d81a84ddf875e1f81b9c6b0 100644 (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>
 
        * Toolbar_pimpl.C (displayToolbar): comment out unsused parameters.
index 965b883e5d7f90f27d09b4971a0382a50017d52a..5e86b2e521803d7de9e6dbdd1df0bdae7bd01889 100644 (file)
@@ -76,12 +76,9 @@ void FormExternal::update()
        fl_set_input(dialog_->input_filename, params.filename.c_str());
        fl_set_input(dialog_->input_parameters, params.parameters.c_str());
 
-       int const ID = controller().getTemplateNumber(params.templ.lyxName);
-       if (ID >= 0) {
-               setEnabled(dialog_->choice_template, true);
-               fl_set_choice(dialog_->choice_template, ID+1);
-       } else
-               setEnabled(dialog_->choice_template, false);
+       int ID = controller().getTemplateNumber(params.templ.lyxName);
+       if (ID < 0) ID = 0;
+       fl_set_choice(dialog_->choice_template, ID+1);
 
        updateComboChange();
 }