From d6f4fb4944dd2d8c71bf2610bffb1be3a3002cef Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 23 Nov 2008 14:12:39 +0000 Subject: [PATCH] Some fixes for the buttons of the Document and Preferences dialog: http://bugzilla.lyx.org/show_bug.cgi?id=5295 - set the bc status to INITIAL when the dialog is initialized, and - enable the restore button in the Document dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27683 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 2 ++ src/frontends/qt4/GuiPrefs.cpp | 2 ++ src/frontends/qt4/GuiView.cpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 8d9a37c574..0ad171b5aa 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -2167,6 +2167,8 @@ void GuiDocument::paramsToDialog() pdfSupportModule->optionsLE->setText( toqstr(pdf.quoted_options)); + + bc().restore(); } diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index 8aa728af9a..406305df61 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -2597,7 +2597,9 @@ bool GuiPreferences::initialiseParams(string const &) movers_ = theMovers(); colors_.clear(); update_screen_font_ = false; + updateRc(rc_); + bc().restore(); return true; } diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 521ccd2e6f..adeb400ef4 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1999,7 +1999,7 @@ bool GuiView::dispatch(FuncRequest const & cmd) inset->dispatch(view()->cursor(), fr); } else if (name == "paragraph") { lyx::dispatch(FuncRequest(LFUN_PARAGRAPH_UPDATE)); - } else if (name == "prefs") { + } else if (name == "prefs" || name == "document") { updateDialog(name, string()); } break; -- 2.39.5