]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Dialogs.C
Rename .C => .cpp for files in src/frontends/controllers, step 1
[lyx.git] / src / frontends / Dialogs.C
index d09b59120dae7e4c434663cc037182c3870a2777..b02cf97f6f788102a42e4bce0ea9b6146ecc88c8 100644 (file)
@@ -215,7 +215,10 @@ void Dialogs::updateBufferDependent(bool switched) const
        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