When trying to define an already used hotkey, now tell where it's used
The dialog message is not perfect, but probably better to improve it to a "overwrite yes/no ?"
This commit is contained in:
parent
09d3f500ee
commit
2e545789f4
2 changed files with 4 additions and 1 deletions
|
@ -29,6 +29,7 @@ Version 1.5.0-svn:
|
|||
* smarter pathfinding: if same MP cost, prefer terrains with better defense
|
||||
and empty hexes (less frequent multi-turn moves blocked by a friend)
|
||||
* New full map screenshot feature (no default hotkey).
|
||||
* When trying to define an already used hotkey, now tell where it's used.
|
||||
* language and i18n:
|
||||
* new translation: Croatian
|
||||
* updated translations: Chinese, Czech, Danish, Dutch, Finnish, French,
|
||||
|
|
|
@ -334,7 +334,9 @@ void show_hotkeys_dialog (display & disp, config *save_config)
|
|||
hotkey::hotkey_item& newhk = hotkey::get_visible_hotkey(menu_.selection());
|
||||
|
||||
if(oldhk.get_id() != newhk.get_id() && !oldhk.null()) {
|
||||
gui::message_dialog(disp,"",_("This Hotkey is already in use.")).show();
|
||||
std::stringstream msg;
|
||||
msg << " " << oldhk.get_description() << " : " << oldhk.get_name();
|
||||
gui::message_dialog(disp,_("This Hotkey is already in use."),msg.str()).show();
|
||||
} else {
|
||||
|
||||
newhk.set_key(character, keycode, (mod & KMOD_SHIFT) != 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue