* 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
*
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 <class Base>
bc().readOnly(bufferIsReadonly());
view().update();
+
+ // The widgets may not be valid, so refresh the button controller
+ bc().refresh();
}
template <class Base>