+2005-10-03 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
+
+ * Dialog.C (checkStatus): update dialog after checkReadOnly has
+ enabled all widgets (fixes bug 1894).
+
2005-09-15 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* ControlDocument.C (dispatchParams): update bufferview at the end
}
// check whether this dialog may be active
- if (controller().canApply())
- bc().readOnly(kernel().isBufferReadonly());
- else
+ if (controller().canApply()) {
+ bool const readonly = kernel().isBufferReadonly();
+ bc().readOnly(readonly);
+ // refreshReadOnly() is too generous in _enabling_ widgets
+ // update dialog to disable disabled widgets again
+ if (!readonly)
+ view().update();
+ } else
bc().readOnly(true);
}