]> git.lyx.org Git - features.git/commitdiff
Fix bug 5799. Warning when opening the document settings dialog. http://bugzilla...
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 22 Feb 2009 23:02:35 +0000 (23:02 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 22 Feb 2009 23:02:35 +0000 (23:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28584 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp

index 0e34658cfbfce9180db2b83377b5e0bff2b62a2b..c1be148ac15612f71d45e1d6e0ab3cb96fc6b857 100644 (file)
@@ -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();
 }