diff --git a/src/driver/fb_generic.cpp b/src/driver/fb_generic.cpp index 667d67143..26a6bf06e 100644 --- a/src/driver/fb_generic.cpp +++ b/src/driver/fb_generic.cpp @@ -696,8 +696,9 @@ void CFrameBuffer::setIconBasePath(const std::string & iconPath) std::string CFrameBuffer::getIconPath(std::string icon_name, std::string file_type) { - std::string path, filetype; - filetype = "." + file_type; + std::string path, filetype = ""; + if (!file_type.empty()) + filetype = "." + file_type; std::string dir[] = { THEMESDIR_VAR "/" + g_settings.theme_name + "/icons", THEMESDIR "/" + g_settings.theme_name + "/icons",