From 475f63d0f279a8c2953354ddf87517fed8ea0d4a Mon Sep 17 00:00:00 2001 From: garak Date: Wed, 12 Sep 2018 21:10:11 -0400 Subject: [PATCH] small fix --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index a596f0b3..a6484c80 100755 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -555,7 +555,7 @@ void MainWindow::redo() { // Open current map scripts in system default editor for .inc files void MainWindow::openInTextEditor() { - QString path = QDir::cleanPath(editor->project->root + QDir::separator() + "data/maps/" + editor->map->name + "/scripts.inc"); + QString path = QDir::cleanPath("file://" + editor->project->root + QDir::separator() + "data/maps/" + editor->map->name + "/scripts.inc"); QDesktopServices::openUrl(QUrl(path)); }