mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-25 10:49:42 +02:00
Fixed misleading indentation in Menu::addActionLink
A reader might have concluded that the icon was always set.
This commit is contained in:
parent
6492ab2fa2
commit
cc38c8ec00
@ -403,8 +403,12 @@ bool Menu::addActionLink(uint section, const string &title, function_t action, c
|
|||||||
link->setSize(gmenu2x->skinConfInt["linkWidth"], gmenu2x->skinConfInt["linkHeight"]);
|
link->setSize(gmenu2x->skinConfInt["linkWidth"], gmenu2x->skinConfInt["linkHeight"]);
|
||||||
link->setTitle(title);
|
link->setTitle(title);
|
||||||
link->setDescription(description);
|
link->setDescription(description);
|
||||||
if (gmenu2x->sc.exists(icon) || (icon.substr(0,5)=="skin:" && !gmenu2x->sc.getSkinFilePath(icon.substr(5,icon.length())).empty()) || fileExists(icon))
|
if (gmenu2x->sc.exists(icon)
|
||||||
|
|| (icon.substr(0,5)=="skin:"
|
||||||
|
&& !gmenu2x->sc.getSkinFilePath(icon.substr(5,icon.length())).empty())
|
||||||
|
|| fileExists(icon)) {
|
||||||
link->setIcon(icon);
|
link->setIcon(icon);
|
||||||
|
}
|
||||||
|
|
||||||
sectionLinks(section)->push_back(link);
|
sectionLinks(section)->push_back(link);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user