]> git.lyx.org Git - lyx.git/commitdiff
Compile fix for Qt < 5.7
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 21 Dec 2018 12:37:07 +0000 (13:37 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 21 Dec 2018 12:37:07 +0000 (13:37 +0100)
Only after that version, the QAction argument is optional.

src/frontends/qt4/GuiCharacter.h

index ca55f33be9209faddfc5afd3b49f2b56f7de65bc..40da643dffd3b7045eb7bf563154ddc14dfcf8b7 100644 (file)
@@ -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