Restor 1.4.x behaviour: Don't touch the preamble QTextEdit if the preamble text is unchanged.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18154 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-05-01 17:33:04 +00:00
parent cc430f0137
commit cf5a9defdd

View File

@ -1022,7 +1022,8 @@ void QDocumentDialog::updateParams(BufferParams const & params)
// preamble
QString preamble = toqstr(params.preamble);
preambleModule->preambleTE->document()->setPlainText(preamble);
if (preamble != preambleModule->preambleTE->document()->toPlainText())
preambleModule->preambleTE->document()->setPlainText(preamble);
// biblio
biblioModule->citeDefaultRB->setChecked(