don't call setCurrentAuthor explicitly, do it at apply() time

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6076 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-02-08 21:48:54 +00:00
parent 84b3737805
commit dbace79cf2
5 changed files with 11 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2003-02-08 John Levon <levon@movementarian.org>
* ControlPrefs.h:
* ControlPrefs.C: call setCurrentAuthor explicitly on apply()
2003-02-08 John Levon <levon@movementarian.org>
* Makefile.am:

View File

@ -51,6 +51,8 @@ void ControlPrefs::apply()
view().apply();
lyxrc = rc_;
bufferlist.setCurrentAuthor(rc_.user_name, rc_.user_email);
// The Save button has been pressed
if (isClosing()) {
lv_.dispatch(FuncRequest(LFUN_SAVEPREFERENCES));
@ -155,9 +157,3 @@ void ControlPrefs::setFormats(Formats const & form)
{
formats = form;
}
void ControlPrefs::setCurrentAuthor()
{
bufferlist.setCurrentAuthor(rc_.user_name, rc_.user_email);
}

View File

@ -66,9 +66,6 @@ public:
/// set global formats
void setFormats(Formats const & form);
/// reset the details for the current author for all buffers
void setCurrentAuthor();
private:
/// get current lyxrc
virtual void setParams();

View File

@ -1,3 +1,7 @@
2003-02-08 John Levon <levon@movementarian.org>
* FormPreferences.C: don't call setCurrentAuthor explicitly
2003-02-08 John Levon <levon@movementarian.org>
* Makefile.am:

View File

@ -1447,7 +1447,6 @@ void FormPreferences::Identity::apply(LyXRC & rc) const
{
rc.user_name = fl_get_input(dialog_->input_user_name);
rc.user_email = fl_get_input(dialog_->input_user_email);
parent_.controller().setCurrentAuthor();
}