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
This commit is contained in:
Vincent van Ravesteijn 2008-11-23 14:12:39 +00:00
parent b394f9998f
commit d6f4fb4944
3 changed files with 5 additions and 1 deletions

View File

@ -2167,6 +2167,8 @@ void GuiDocument::paramsToDialog()
pdfSupportModule->optionsLE->setText(
toqstr(pdf.quoted_options));
bc().restore();
}

View File

@ -2597,7 +2597,9 @@ bool GuiPreferences::initialiseParams(string const &)
movers_ = theMovers();
colors_.clear();
update_screen_font_ = false;
updateRc(rc_);
bc().restore();
return true;
}

View File

@ -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;