From 79385f0ff80c1dbf0f9d1914e12b87fea27b5b89 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sun, 17 Jul 2011 14:22:06 +0300 Subject: [PATCH] GUI: Fix separators when opening file to editor. Ticket: #2916 (Wrong slashes in file path passed to the Windows-text editors) --- gui/resultstree.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 7f0c4d263..00d221a34 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -703,6 +703,8 @@ void ResultsTree::StartApplication(QStandardItem *target, int application) //Replace (file) with filename QString file = data["file"].toString(); + file = QDir::toNativeSeparators(file); + qDebug() << "Opening file: " << file; QFileInfo info(file); if (!info.exists())