setStatusTip(label);
setText(label);
QString const name = toqstr(tbitem_.name_);
- FileName const fname = libFileSearch("images/math/", name, "png");
- if (fname.exists())
- setIcon(QIcon(getPixmap("images/math/", name, "png")));
- else
- setIcon(QIcon(getPixmap("images/", name, "png")));
+ QString imagedir = "images/math/";
+ FileName const fname = imageLibFileSearch(imagedir, name, "png");
+ if (fname.exists()) {
+ setIcon(QIcon(getPixmap(imagedir, name, "png")));
+ } else {
+ imagedir = "images/";
+ imageLibFileSearch(imagedir, name, "png");
+ setIcon(QIcon(getPixmap(imagedir, name, "png")));
+ }
if (sticky)
connect(this, SIGNAL(triggered(QAction *)),
this, SLOT(actionTriggered(QAction *)));
settings.value(sessionKey() + "/visibility", error_val).toInt();
if (visibility == error_val || visibility == 0) {
// This should not happen, but in case we use the defaults
- LYXERR0("Session settings could not be found!. "
- "Defaults are used instead");
+ LYXERR0("Session settings could not be found! Defaults are used instead.");
visibility =
guiApp->toolbars().defaultVisibility(fromqstr(objectName()));
}