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
This commit is contained in:
Vincent van Ravesteijn 2009-02-22 23:02:35 +00:00
parent 4c44a75311
commit 92d90a0be3

View File

@ -2148,8 +2148,10 @@ void GuiDocument::paramsToDialog()
pdfSupportModule->optionsLE->setText( pdfSupportModule->optionsLE->setText(
toqstr(pdf.quoted_options)); toqstr(pdf.quoted_options));
bc().restore(); // Make sure that the bc is in the INITIAL state
if (bc().policy().buttonStatus(ButtonPolicy::RESTORE))
bc().restore();
} }