diff --git a/src/editor.cpp b/src/editor.cpp index 1345adb6..2c7ad55c 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -1593,7 +1593,7 @@ void Editor::setConnectionMap(QString mapName) { if (!selected_connection_item) return; - if (mapName.isEmpty()) { + if (mapName.isEmpty() || mapName == NONE_MAP_NAME) { removeCurrentConnection(); return; } @@ -1744,7 +1744,7 @@ void Editor::updateDiveEmergeMap(QString mapName, QString direction) { } } - if (mapName.isEmpty()) { + if (mapName.isEmpty() || mapName == NONE_MAP_NAME) { // Remove dive/emerge connection if (connection) { map->connections.removeOne(connection);