X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiDialog.cpp;h=7d4bf582116f11ddffcabfd8692db2870270ee27;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=f7271ad2bdcd5edaddd51f1a7fe9e858e6fc965b;hpb=ed4ea2cb974bf1704befbb7dcc4576ad1c7ec3d9;p=lyx.git diff --git a/src/frontends/qt4/GuiDialog.cpp b/src/frontends/qt4/GuiDialog.cpp index f7271ad2bd..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; @@ -113,4 +121,4 @@ void GuiDialog::updateView() } // namespace frontend } // namespace lyx -#include "GuiDialog_moc.cpp" +#include "moc_GuiDialog.cpp"