X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlDialog.tmpl;h=dffa2e7ecc856ab40f91865f510f039035c574bb;hb=120c89f24fae05379fbdc8539d3cfae574c2aecd;hp=58690f7f7db4d87399385881cf22da7ebec75de5;hpb=6fac1dc98003a6a6e02765f078b3d3426d426508;p=lyx.git diff --git a/src/frontends/controllers/ControlDialog.tmpl b/src/frontends/controllers/ControlDialog.tmpl index 58690f7f7d..dffa2e7ecc 100644 --- a/src/frontends/controllers/ControlDialog.tmpl +++ b/src/frontends/controllers/ControlDialog.tmpl @@ -1,9 +1,10 @@ // -*- C++ -*- /** * \file ControlDialog.tmpl - * 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 * @@ -31,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 @@ -60,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