#include <boost/bind.hpp>
+namespace lyx {
+
+
using std::string;
using lyx::frontend::Dialog;
for(; it != end; ++it) {
Dialog * dialog = it->second.get();
if (switched && dialog->controller().isBufferDependent()) {
- dialog->hide();
+ if (dialog->isVisible() && dialog->controller().initialiseParams(""))
+ dialog->view().update();
+ else
+ dialog->hide();
} else {
// A bit clunky, but the dialog will request
// that the kernel provides it with the necessary
dialog->checkStatus();
}
}
+
+
+} // namespace lyx