on Windows Backslashes in Pathnames must be double quoted, otherwise some editors like e.c. SciTE are not able to open the file.

This commit is contained in:
larudwer 2012-03-04 15:53:11 +01:00 committed by Daniel Marjamäki
parent ef6e381d47
commit e0c880133c
1 changed files with 3 additions and 0 deletions

View File

@ -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);