1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Normalize paths when displaying them.

This commit is contained in:
Martin Tůma 2018-02-10 16:01:01 +01:00
parent 2677bb77f8
commit 089d796194

View File

@ -615,15 +615,17 @@ void GUI::paths()
msgBox.setInformativeText( msgBox.setInformativeText(
"<style>td {white-space: pre; padding-right: 1em;}</style>" "<style>td {white-space: pre; padding-right: 1em;}</style>"
"<div><table><tr><td>" + tr("Map directory:") + "</td><td><code>" "<div><table><tr><td>" + tr("Map directory:") + "</td><td><code>"
+ GLOBAL_MAP_DIR + "</code></td></tr><tr><td>" + tr("POI directory:") + QDir::cleanPath(GLOBAL_MAP_DIR) + "</code></td></tr><tr><td>"
+ "</td><td><code>" + GLOBAL_POI_DIR + "</code></td></tr><tr><td>" + tr("POI directory:") + "</td><td><code>"
+ tr("GCS file:") + "</td><td><code>" + GLOBAL_GCS_FILE + QDir::cleanPath(GLOBAL_POI_DIR) + "</code></td></tr><tr><td>"
+ tr("GCS file:") + "</td><td><code>" + QDir::cleanPath(GLOBAL_GCS_FILE)
+ "</code></td></tr><tr><td>" + tr("PCS file:") + "</td><td><code>" + "</code></td></tr><tr><td>" + tr("PCS file:") + "</td><td><code>"
+ GLOBAL_PCS_FILE + "</code></td></tr><tr><td>" + tr("Ellipsoids file:") + QDir::cleanPath(GLOBAL_PCS_FILE) + "</code></td></tr><tr><td>"
+ "</td><td><code>" + GLOBAL_ELLIPSOID_FILE + tr("Ellipsoids file:") + "</td><td><code>"
+ "</code></td></tr>" + "<tr><td></td><td></td></tr></table></div>" + QDir::cleanPath(GLOBAL_ELLIPSOID_FILE) + "</code></td></tr>"
"<div><table><tr><td>" + tr("User override directory:") + "<tr><td></td><td></td></tr></table></div><div><table><tr><td>"
+ "</td><td><code>" + USER_DIR + "</td></tr></table></div>" + tr("User override directory:") + "</td><td><code>"
+ QDir::cleanPath(USER_DIR) + "</td></tr></table></div>"
); );
msgBox.exec(); msgBox.exec();