From 95e9ca5de806a86fc732d2057ac03231ca51e2bd Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 17 Mar 2016 10:30:47 +0100 Subject: [PATCH] CComponentsButton: get image path from framebuffer Buttons didn't get icons from custom path e.g. /var/tuxbox/icons This should fix this. --- src/gui/components/cc_frm_button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index 163c4be5c..ee7b4a23d 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -144,7 +144,7 @@ void CComponentsButton::initIcon() //initialize icon object string::size_type pos = cc_btn_icon.find("/", 0); 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){ cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, 0, cc_btn_icon, this);