X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiDialog.cpp;h=7d4bf582116f11ddffcabfd8692db2870270ee27;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=7b08bef7b49420f45580fdc3384c654e63743504;hpb=5b4edfeb2cf39c71006340a4429a1833a1d0506d;p=lyx.git diff --git a/src/frontends/qt4/GuiDialog.cpp b/src/frontends/qt4/GuiDialog.cpp index 7b08bef7b4..7d4bf58211 100644 --- a/src/frontends/qt4/GuiDialog.cpp +++ b/src/frontends/qt4/GuiDialog.cpp @@ -26,7 +26,8 @@ namespace lyx { namespace frontend { GuiDialog::GuiDialog(GuiView & lv, QString const & name, QString const & title) - : QDialog(&lv), Dialog(lv, name, "LyX: " + title), is_closing_(false) + : QDialog(&lv), Dialog(lv, name, "LyX: " + title), updating_(false), + is_closing_(false) {} @@ -50,6 +51,13 @@ void GuiDialog::slotApply() } +void GuiDialog::slotAutoApply() +{ + apply(); + bc().autoApply(); +} + + void GuiDialog::slotOK() { is_closing_ = true; @@ -87,7 +95,10 @@ void GuiDialog::changed() void GuiDialog::enableView(bool enable) { - bc().setReadOnly(!enable); + if (!enable) { + bc().setReadOnly(true); + bc().setValid(false); + } Dialog::enableView(enable); } @@ -110,4 +121,4 @@ void GuiDialog::updateView() } // namespace frontend } // namespace lyx -#include "GuiDialog_moc.cpp" +#include "moc_GuiDialog.cpp"