]> git.lyx.org Git - features.git/commitdiff
style
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 28 Dec 2018 11:44:55 +0000 (12:44 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 28 Dec 2018 11:44:55 +0000 (12:44 +0100)
src/frontends/qt4/GuiToolbar.cpp

index 23bf04c6e8ad014a1926a94138c6c226fa016cb6..39e4812276bfc1ab3de46ab053ea0ef293951891 100644 (file)
@@ -383,9 +383,11 @@ void DynamicMenuButton::updateTriggered()
                        ++i;
                }
                // Add item to reset to defaults
-               Action * dact = new Action(FuncRequest(LFUN_FONT_DEFAULT, FuncRequest::TOOLBAR), getIcon(FuncRequest(LFUN_UNDO), false),
-                                          qt_("&Reset to default"), qt_("Reset all font settings to their defaults"), this);
-               m->addAction(dact);
+               Action * reset_act = new Action(FuncRequest(LFUN_FONT_DEFAULT, FuncRequest::TOOLBAR),
+                                               getIcon(FuncRequest(LFUN_UNDO), false),
+                                               qt_("&Reset to default"),
+                                               qt_("Reset all font settings to their defaults"), this);
+               m->addAction(reset_act);
                if (default_act)
                        QToolButton::setDefaultAction(default_act);