Fix a titlebar glitch

This commit is contained in:
Ignacio R. Morelle 2008-04-25 20:39:59 +00:00
parent dc5461cba5
commit dfcdf9cc82
2 changed files with 2 additions and 6 deletions

View file

@ -491,9 +491,7 @@ void map_editor::change_language() {
// Update the frame title
wm_title_string = _("Battle for Wesnoth Map Editor");
wm_title_string += " - " + game_config::version
+ (game_config::revision.empty() ? "" :
" (" + game_config::revision + ")");
wm_title_string += " - " + game_config::revision;
SDL_WM_SetCaption(wm_title_string.c_str(), NULL);
font::load_font_config();

View file

@ -301,9 +301,7 @@ int main(int argc, char** argv)
// Set the caption of the window
wm_title_string = _("Battle for Wesnoth Map Editor");
wm_title_string += " - " + game_config::version
+ (game_config::revision.empty() ? "" :
" (" + game_config::revision + ")");
wm_title_string += " - " + game_config::revision;
SDL_WM_SetCaption(wm_title_string.c_str(), NULL);
//Read the configuration af