From cf5a9defdd186fe5bc2b5cc7977e7b091949236f Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 1 May 2007 17:33:04 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/QDocument.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/QDocument.cpp b/src/frontends/qt4/QDocument.cpp index 322fc0e6f0..9619957ed9 100644 --- a/src/frontends/qt4/QDocument.cpp +++ b/src/frontends/qt4/QDocument.cpp @@ -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(