Skip to content
Snippets Groups Projects
Commit 5e653c3d authored by Robert Loehning's avatar Robert Loehning
Browse files

Changing plugin paths to native separators to avoid showing messages with mixed

separators / and \ on Windows.

Reviewed-by: Friedemann Kleint
parent ae634437
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,7 @@ static inline QStringList getPluginPaths() ...@@ -178,7 +178,7 @@ static inline QStringList getPluginPaths()
// Figure out root: Up one from 'bin' // Figure out root: Up one from 'bin'
QDir rootDir = QApplication::applicationDirPath(); QDir rootDir = QApplication::applicationDirPath();
rootDir.cdUp(); rootDir.cdUp();
const QString rootDirPath = rootDir.canonicalPath(); const QString rootDirPath = QDir::toNativeSeparators(rootDir.canonicalPath());
// 1) "plugins" (Win/Linux) // 1) "plugins" (Win/Linux)
QString pluginPath = rootDirPath; QString pluginPath = rootDirPath;
pluginPath += QDir::separator(); pluginPath += QDir::separator();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment