diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 6c1de5387e..0469db2515 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -176,7 +176,7 @@ MenuButton::MenuButton(GuiToolbar * bar, ToolbarItem const & item, bool const st setStatusTip(label); setText(label); QString const name = toqstr(tbitem_.name_); - FileName fname = libFileSearch("images/math/", name, "png"); + FileName const fname = libFileSearch("images/math/", name, "png"); if (fname.exists()) setIcon(QIcon(getPixmap("images/math/", name, "png"))); else