From e0c880133c690163aa58aa05d43bffd504701d91 Mon Sep 17 00:00:00 2001 From: larudwer Date: Sun, 4 Mar 2012 15:53:11 +0100 Subject: [PATCH] on Windows Backslashes in Pathnames must be double quoted, otherwise some editors like e.c. SciTE are not able to open the file. --- gui/resultstree.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 7b6a17688..3048ea26e 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -623,6 +623,9 @@ void ResultsTree::StartApplication(QStandardItem *target, int application) //Replace (file) with filename QString file = data["file"].toString(); file = QDir::toNativeSeparators(file); +#ifdef Q_WS_WIN + file.replace(QString("\\"), QString("\\\\")); +#endif qDebug() << "Opening file: " << file; QFileInfo info(file);