fix bug 22646: tooltips broken in replay viewer

Fixes a logic error introduced in this commit:

4e17d42679 (diff-89155afc5a0b890787b4bfa962f217d4R846)

I'm not sure, it seems it would have most if not all tooltips
except those related to the map editor.
This commit is contained in:
Chris Beck 2014-09-16 17:04:46 -04:00
parent ef3eb7b947
commit c9247a6eb6

View File

@ -604,6 +604,8 @@ const std::string theme::action::tooltip(size_t index) const {
if (!hotkey::get_names(items_[index]).empty())
result << "\n" << N_("Hotkey(s): ") << hotkey::get_names(items_[index]);
result << "\n" << tooltip_;
} else {
result << tooltip_;
}
return result.str();