Merge branch 'master' of github.com:wesnoth/wesnoth-old
This commit is contained in:
commit
bc92d1d88b
1 changed files with 4 additions and 2 deletions
|
@ -374,10 +374,12 @@ bool editor_controller::can_execute_command(const hotkey::hotkey_command& cmd, i
|
|||
case HOTKEY_EDITOR_AREA_REMOVE:
|
||||
case HOTKEY_EDITOR_AREA_RENAME:
|
||||
case HOTKEY_EDITOR_LOCAL_TIME:
|
||||
return !context_manager_->get_map_context().get_time_manager()->get_area_ids().empty();
|
||||
return !context_manager_->get_map_context().is_pure_map() &&
|
||||
!context_manager_->get_map_context().get_time_manager()->get_area_ids().empty();
|
||||
|
||||
case HOTKEY_EDITOR_AREA_SAVE:
|
||||
return !context_manager_->get_map_context().get_time_manager()->get_area_ids().empty()
|
||||
return !context_manager_->get_map_context().is_pure_map() &&
|
||||
!context_manager_->get_map_context().get_time_manager()->get_area_ids().empty()
|
||||
&& !context_manager_->get_map().selection().empty();
|
||||
|
||||
case HOTKEY_EDITOR_SELECTION_EXPORT:
|
||||
|
|
Loading…
Add table
Reference in a new issue