From: Juergen Spitzmueller Date: Fri, 21 Dec 2018 12:37:07 +0000 (+0100) Subject: Compile fix for Qt < 5.7 X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2850 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7c31bfa423c2da7c41f53ecde6c159fca35f3d54;p=lyx.git Compile fix for Qt < 5.7 Only after that version, the QAction argument is optional. --- diff --git a/src/frontends/qt4/GuiCharacter.h b/src/frontends/qt4/GuiCharacter.h index ca55f33be9..40da643dff 100644 --- a/src/frontends/qt4/GuiCharacter.h +++ b/src/frontends/qt4/GuiCharacter.h @@ -112,9 +112,9 @@ private: bool nospellcheck_; /// - QAction * resetdefault_ = new QAction; + QAction * resetdefault_ = new QAction(this); /// - QAction * resetnochange_ = new QAction; + QAction * resetnochange_ = new QAction(this); }; } // namespace frontend