mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 20:03:18 +00:00
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:
parent
ef3eb7b947
commit
c9247a6eb6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user