GUI: Fix separators when opening file to editor.

Ticket: #2916 (Wrong slashes in file path passed to the Windows-text editors)
This commit is contained in:
Kimmo Varis 2011-07-17 14:22:06 +03:00
parent 7dcb68f5a4
commit 79385f0ff8
1 changed files with 2 additions and 0 deletions

View File

@ -703,6 +703,8 @@ void ResultsTree::StartApplication(QStandardItem *target, int application)
//Replace (file) with filename //Replace (file) with filename
QString file = data["file"].toString(); QString file = data["file"].toString();
file = QDir::toNativeSeparators(file);
qDebug() << "Opening file: " << file;
QFileInfo info(file); QFileInfo info(file);
if (!info.exists()) if (!info.exists())