]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiDocument.cpp
Fix bug 5799. Warning when opening the document settings dialog. http://bugzilla...
[features.git] / 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();
 }