summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/projectexplorer/task.cpp')
-rw-r--r--src/plugins/projectexplorer/task.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/task.cpp b/src/plugins/projectexplorer/task.cpp
index a1571b91b8..24e3bf56eb 100644
--- a/src/plugins/projectexplorer/task.cpp
+++ b/src/plugins/projectexplorer/task.cpp
@@ -32,6 +32,8 @@
#include "task.h"
+#include <QtCore/QDir>
+
namespace ProjectExplorer
{
@@ -48,8 +50,7 @@ Task::Task() : taskId(0), type(Unknown), line(-1)
Task::Task(TaskType type_, const QString &description_,
const QString &file_, int line_, const QString &category_) :
- taskId(s_nextId), type(type_), description(description_), file(file_),
- line(line_), category(category_)
+ taskId(s_nextId), type(type_), description(description_), file(QDir::fromNativeSeparators(file_)), line(line_), category(category_)
{
++s_nextId;
}