After http://www.lyx.org/trac/changeset/31255 I am getting:

../../../../src/frontends/qt4/GuiApplication.cpp(391): Cannot load pixmap 
"images/math/view-others.png", please verify resource system!
../../../../src/frontends/qt4/GuiApplication.cpp(391): Cannot load pixmap 
"images/math/update-others.png", please verify resource system!

Should we revert r31255 or apply the attached patch?

-- 
Enrico
Index: src/frontends/qt4/GuiToolbar.cpp
===================================================================
--- src/frontends/qt4/GuiToolbar.cpp    (revisione 31373)
+++ src/frontends/qt4/GuiToolbar.cpp    (copia locale)
@@ -175,7 +175,12 @@ MenuButton::MenuButton(GuiToolbar * bar,
        setToolTip(label);
        setStatusTip(label);
        setText(label);
-       setIcon(QIcon(getPixmap("images/math/", toqstr(tbitem_.name_), "png")));
+       QString const name = toqstr(tbitem_.name_);
+       FileName fname = libFileSearch("images/math/", name, "png");
+       if (fname.exists())
+           setIcon(QIcon(getPixmap("images/math/", name, "png")));
+       else
+           setIcon(QIcon(getPixmap("images/", name, "png")));
        if (sticky)
                connect(this, SIGNAL(triggered(QAction *)),
                        this, SLOT(actionTriggered(QAction *)));

Reply via email to