CComponentsButton: get image path from framebuffer

Buttons didn't get icons from custom path e.g. /var/tuxbox/icons
This should fix this.
This commit is contained in:
2016-03-17 10:30:47 +01:00
parent 97343d1190
commit 95e9ca5de8

View File

@@ -144,7 +144,7 @@ void CComponentsButton::initIcon()
//initialize icon object //initialize icon object
string::size_type pos = cc_btn_icon.find("/", 0); string::size_type pos = cc_btn_icon.find("/", 0);
if (pos == string::npos) if (pos == string::npos)
cc_btn_icon = frameBuffer->getIconBasePath() + "/" + cc_btn_icon + ".png"; cc_btn_icon = frameBuffer->getIconPath(cc_btn_icon);
if (cc_btn_icon_obj == NULL){ if (cc_btn_icon_obj == NULL){
cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, 0, cc_btn_icon, this); cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, 0, cc_btn_icon, this);