If you start LyX and open the Preferences dialog, "Apply" is activated
even though no change has been made so far
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2706
a592a061-630c-0410-9148-
cb99ea01b6c8
+2001-09-07 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * FormPreferences.C (build): Fix bug: if you start LyX and open the
+ Preferences dialog, "Apply" is activated even though no change has been
+ made so far.
+
2001-09-07 Rob Lahaye <lahaye@users.sourceforge.net>
* FormBase.C (show): use controller_.IconifyWithMain() to control
bc().setCancel(dialog_->button_cancel);
bc().setRestore(dialog_->button_restore);
+ // The first time the dialog is shown, the Apply, Save buttons are
+ // active. On any subsequent showing they aren't (as they shouldn't).
+ // Don't understand why this is so, but this fixes things.
+ // (Angus 7 Sep, 2001)
+ bc().input(ButtonPolicy::SMI_CANCEL);
+
// build the tab folders
converters_tab_.reset(build_outer_tab());
look_n_feel_tab_.reset(build_outer_tab());