From 5e653c3d2584e181b33cb494177e6ec7b9ecd279 Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@nokia.com>
Date: Thu, 23 Jul 2009 14:04:00 +0200
Subject: [PATCH] Changing plugin paths to native separators to avoid showing
 messages with mixed separators / and \ on Windows.

Reviewed-by: Friedemann Kleint
---
 src/app/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/main.cpp b/src/app/main.cpp
index 0eabcf965b8..0be05f3eeed 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -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();
-- 
GitLab