X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlDialog.tmpl;h=dffa2e7ecc856ab40f91865f510f039035c574bb;hb=120c89f24fae05379fbdc8539d3cfae574c2aecd;hp=8a8ce459cb626e9fd345db34a73ca445b66dfc7a;hpb=9681e21dae96d2152df6387ec2e8626ee5b0bd42;p=lyx.git diff --git a/src/frontends/controllers/ControlDialog.tmpl b/src/frontends/controllers/ControlDialog.tmpl index 8a8ce459cb..dffa2e7ecc 100644 --- a/src/frontends/controllers/ControlDialog.tmpl +++ b/src/frontends/controllers/ControlDialog.tmpl @@ -1,10 +1,12 @@ // -*- C++ -*- -/* +/** * \file ControlDialog.tmpl - * Copyright 2002 the LyX Team - * Read the file COPYING + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * \author Angus Leeming + * \author Angus Leeming + * + * Full author contact details are available in file CREDITS * * ControlDialog is a base class and so these templatised methods will be * instantiated if this file is #included in the derived classes' .C file. @@ -30,19 +32,22 @@ void ControlDialog::show() connect(); + if (!dialog_built_) { + view().build(); + dialog_built_ = true; + } + setParams(); if (emergency_exit_) { hide(); return; } - if (!dialog_built_) { - view().build(); - dialog_built_ = true; - } - bc().readOnly(bufferIsReadonly()); view().show(); + + // The widgets may not be valid, so refresh the button controller + bc().refresh(); } template @@ -59,6 +64,9 @@ void ControlDialog::update() bc().readOnly(bufferIsReadonly()); view().update(); + + // The widgets may not be valid, so refresh the button controller + bc().refresh(); } template