Skip to content

Commit

Permalink
Fix build with GCC and MSVC2015
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed Feb 10, 2017
1 parent 984c490 commit fa6c68a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/gui/widgets/addon_list.cpp
Expand Up @@ -206,14 +206,16 @@ void addon_list::set_addons(const addons_list& addons)
data.emplace("icon", item);

const std::string publish_name = publish
? formatter()
? (formatter()
<< "<span color='#00ff00'>" // GOOD_COLOR
<< vgettext("Publish: $addon_title", {{"addon_title", make_addon_title(id)}})
<< "</span>"
: formatter()
<< "</span>").
str()
: (formatter()
<< "<span color='#ff0000'>" // BAD_COLOR
<< vgettext("Delete: $addon_title", {{"addon_title", make_addon_title(id)}})
<< "</span>";
<< "</span>").
str();

item["label"] = publish_name;
data.emplace("name", item);
Expand Down

0 comments on commit fa6c68a

Please sign in to comment.