We don't want the document dialog to be reset for each new paragraph.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24597 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-04 07:50:00 +00:00
parent b8a1679751
commit fc12716a97
2 changed files with 9 additions and 2 deletions

View File

@ -2167,6 +2167,8 @@ char const * GuiDocument::fontfamilies_gui[5] = {
bool GuiDocument::initialiseParams(string const &) bool GuiDocument::initialiseParams(string const &)
{ {
bp_ = buffer().params(); bp_ = buffer().params();
// Force update on next updateContent() round.
current_id_ = 0;
loadModuleInfo(); loadModuleInfo();
return true; return true;
} }

View File

@ -550,6 +550,9 @@ void GuiView::on_currentWorkAreaChanged(GuiWorkArea * wa)
structureChanged(); structureChanged();
// The document settings needs to be reinitialised.
updateDialog("document", "");
// Buffer-dependent dialogs must be updated. This is done here because // Buffer-dependent dialogs must be updated. This is done here because
// some dialogs require buffer()->text. // some dialogs require buffer()->text.
updateDialogs(); updateDialogs();
@ -570,6 +573,8 @@ void GuiView::on_lastWorkAreaRemoved()
} }
#else #else
structureChanged(); structureChanged();
// The document settings needs to be reinitialised.
updateDialog("document", "");
updateDialogs(); updateDialogs();
#endif #endif
} }
@ -624,6 +629,8 @@ bool GuiView::event(QEvent * e)
// The document structure, name and dialogs might have // The document structure, name and dialogs might have
// changed in another view. // changed in another view.
structureChanged(); structureChanged();
// The document settings needs to be reinitialised.
updateDialog("document", "");
updateDialogs(); updateDialogs();
} else { } else {
setWindowTitle(qt_("LyX")); setWindowTitle(qt_("LyX"));
@ -927,8 +934,6 @@ void GuiView::structureChanged()
// Navigator needs more than a simple update in this case. It needs to be // Navigator needs more than a simple update in this case. It needs to be
// rebuilt. // rebuilt.
updateDialog("toc", ""); updateDialog("toc", "");
// Same for the document settings dialog.
updateDialog("document", "");
} }