]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlDialogs.h
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlDialogs.h
index c07de1132980d54bf6e0476ea43b89b3a7f02e4e..65d87f3101f9d783cd21ac509b38896fc684e5ac 100644 (file)
@@ -50,7 +50,6 @@ protected:
 
 #include "LyXView.h"
 
-
 template <class Base>
 ControlDialog<Base>::ControlDialog(LyXView & lv, Dialogs & d)
        : Base(lv, d)
@@ -65,6 +64,12 @@ void ControlDialog<Base>::show()
 
        setParams();
 
+       static bool isBuilt = false;
+       if (!isBuilt) {
+               isBuilt = true;
+               view().build();
+       }
+
        bc().readOnly(isReadonly());
        view().show();
 }
@@ -76,8 +81,12 @@ void ControlDialog<Base>::update()
                return;
 
        setParams();
-       
+
        bc().readOnly(isReadonly());
+       // Reset the Button Controller to it's initial state
+       bc().invalid();
+       bc().restore();
+
        view().update();
 }