From 248aabf900fdd3ec9495424b73d05101079e9e9d Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Tue, 16 Sep 2014 17:04:46 -0400 Subject: [PATCH] fix bug 22646: tooltips broken in replay viewer Fixes a logic error introduced in this commit: https://github.com/wesnoth/wesnoth/commit/4e17d42679175534a0215a07cfdfad58a9fc6870#diff-89155afc5a0b890787b4bfa962f217d4R846 I'm not sure, it seems it would have most if not all tooltips except those related to the map editor. --- src/theme.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/theme.cpp b/src/theme.cpp index 05eec0320b49..f5d824bf5a93 100644 --- a/src/theme.cpp +++ b/src/theme.cpp @@ -603,6 +603,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();