mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
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:
parent
84b3737805
commit
dbace79cf2
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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:
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user