From 089d796194a75c18e09d1f07c6dc5c0b02997be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 10 Feb 2018 16:01:01 +0100 Subject: [PATCH] Normalize paths when displaying them. --- src/GUI/gui.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 0764a99d..eecb840b 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -615,15 +615,17 @@ void GUI::paths() msgBox.setInformativeText( "" "
" + "
" + tr("Map directory:") + "" - + GLOBAL_MAP_DIR + "
" + tr("POI directory:") - + "" + GLOBAL_POI_DIR + "
" - + tr("GCS file:") + "" + GLOBAL_GCS_FILE + + QDir::cleanPath(GLOBAL_MAP_DIR) + "
" + + tr("POI directory:") + "" + + QDir::cleanPath(GLOBAL_POI_DIR) + "
" + + tr("GCS file:") + "" + QDir::cleanPath(GLOBAL_GCS_FILE) + "
" + tr("PCS file:") + "" - + GLOBAL_PCS_FILE + "
" + tr("Ellipsoids file:") - + "" + GLOBAL_ELLIPSOID_FILE - + "
" - "
" + tr("User override directory:") - + "" + USER_DIR + "
" + + QDir::cleanPath(GLOBAL_PCS_FILE) + "" + + tr("Ellipsoids file:") + "" + + QDir::cleanPath(GLOBAL_ELLIPSOID_FILE) + "" + + "
" + + tr("User override directory:") + "" + + QDir::cleanPath(USER_DIR) + "
" ); msgBox.exec();