From: Vincent van Ravesteijn Date: Sun, 22 Feb 2009 23:02:35 +0000 (+0000) Subject: Fix bug 5799. Warning when opening the document settings dialog. http://bugzilla... X-Git-Tag: 2.0.0~7167 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=92d90a0be3471b455f7415f3217ca077ce8d50a9;p=features.git Fix bug 5799. Warning when opening the document settings dialog. http://bugzilla.lyx.org/show_bug.cgi?id=5799. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28584 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 0e34658cfb..c1be148ac1 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -2148,8 +2148,10 @@ void GuiDocument::paramsToDialog() pdfSupportModule->optionsLE->setText( toqstr(pdf.quoted_options)); - - bc().restore(); + + // Make sure that the bc is in the INITIAL state + if (bc().policy().buttonStatus(ButtonPolicy::RESTORE)) + bc().restore(); }