From 92d90a0be3471b455f7415f3217ca077ce8d50a9 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 22 Feb 2009 23:02:35 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiDocument.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); } -- 2.39.5