From 409744c449ecfaffb7685d206845120641020fb8 Mon Sep 17 00:00:00 2001 From: Alexander van Gessel Date: Wed, 9 Apr 2014 17:06:07 +0200 Subject: [PATCH] Wrap some directory composition in get_dir --- src/editor/map/context_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/map/context_manager.cpp b/src/editor/map/context_manager.cpp index a1ab6622c49..7af00c6707d 100644 --- a/src/editor/map/context_manager.cpp +++ b/src/editor/map/context_manager.cpp @@ -562,7 +562,7 @@ void context_manager::save_map_as_dialog() { std::string input_name = get_map_context().get_filename(); if (input_name.empty()) { - input_name = default_dir_ + "/maps"; + input_name = get_dir(default_dir_ + "/maps"); } const std::string old_input_name = input_name; @@ -590,7 +590,7 @@ void context_manager::save_scenario_as_dialog() { std::string input_name = get_map_context().get_filename(); if (input_name.empty()) { - input_name = default_dir_ + "/scenarios"; + input_name = get_dir(default_dir_ + "/scenarios"); } const std::string old_input_name = input_name;