Commit a9242d7c authored by Tobias Hunger's avatar Tobias Hunger

Tasklist: Backslash escapes in descriptions

Handle backslash escapes in descriptions only. This unbreaks
windows pathes.

Change-Id: Id7314d2eb0eff85ace70f1bc3e542ad54ff12210
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 2892f13b
......@@ -120,6 +120,7 @@ public:
file = fi.absoluteFilePath();
}
}
description = unescape(description);
hub->addTask(ProjectExplorer::Task(type, description, file, line, QLatin1String(Constants::TASKLISTTASK_ID)));
}
......@@ -133,11 +134,7 @@ public:
if (line.startsWith(QChar('#')))
return result;
result = line.split(QChar('\t'));
for (int i = 0; i < result.count(); ++i)
result[i] = unescape(result.at(i));
return result;
return line.split(QChar('\t'));
}
QString unescape(const QString &input) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment