diff --git a/src/editor2/editor_controller.cpp b/src/editor2/editor_controller.cpp index f1c8231a24f..364d2a15290 100644 --- a/src/editor2/editor_controller.cpp +++ b/src/editor2/editor_controller.cpp @@ -606,7 +606,9 @@ void editor_controller::resize_map_dialog() bool editor_controller::save_map_as(const std::string& filename) { size_t is_open = check_open_map(filename); - if (is_open < map_contexts_.size() && is_open != current_context_index_) { + if (is_open < map_contexts_.size() + && is_open != static_cast(current_context_index_)) { + gui::dialog(gui(), _("This map is already open."), filename).show(); return false; }