Update defaultTemplateName so that the external dialog opens with the

last-used template.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8292 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-01-02 21:25:02 +00:00
parent f0a2d5d9ae
commit 1fe005b6c4
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-12-29 Angus Leeming <leeming@lyx.org>
* insetexternal.C (setParams): update defaultTemplateName.
2003-12-22 Michael Schmitt <michael.schmitt@teststep.org> 2003-12-22 Michael Schmitt <michael.schmitt@teststep.org>
* insetbox.C: Use term "Box" in button label * insetbox.C: Use term "Box" in button label

View File

@ -65,7 +65,7 @@ external::DisplayType const defaultDisplayType = external::NoDisplay;
unsigned int const defaultLyxScale = 100; unsigned int const defaultLyxScale = 100;
string const defaultTemplateName = "RasterImage"; string defaultTemplateName = "RasterImage";
} // namespace anon } // namespace anon
@ -596,6 +596,10 @@ void InsetExternal::setParams(InsetExternalParams const & p,
{ {
params_ = p; params_ = p;
// Subsequent calls to the InsetExternal::Params default constructor
// will use this.
defaultTemplateName = params_.templatename();
switch (getRenderType(params_)) { switch (getRenderType(params_)) {
case RENDERBUTTON: { case RENDERBUTTON: {
RenderButton * button_ptr = renderer_->asButton(); RenderButton * button_ptr = renderer_->asButton();