diff --git a/src/ride/TrackDesignRepository.cpp b/src/ride/TrackDesignRepository.cpp index a288154204..09ce52e2b3 100644 --- a/src/ride/TrackDesignRepository.cpp +++ b/src/ride/TrackDesignRepository.cpp @@ -176,7 +176,11 @@ public: item->Path = std::string(newPath); SortItems(); - result = newPath; + item = GetTrackItem(newPath); + if (item != nullptr) + { + result = item->Path.c_str(); + } } } }