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

separators / and \ on Windows.

Reviewed-by: Friedemann Kleint
This commit is contained in:
Robert Loehning
2009-07-23 14:04:00 +02:00
parent ae63443715
commit 5e653c3d25

View File

@@ -178,7 +178,7 @@ static inline QStringList getPluginPaths()
// Figure out root: Up one from 'bin'
QDir rootDir = QApplication::applicationDirPath();
rootDir.cdUp();
const QString rootDirPath = rootDir.canonicalPath();
const QString rootDirPath = QDir::toNativeSeparators(rootDir.canonicalPath());
// 1) "plugins" (Win/Linux)
QString pluginPath = rootDirPath;
pluginPath += QDir::separator();