forked from qt-creator/qt-creator
Tasklist: Backslash escapes in descriptions
Handle backslash escapes in descriptions only. This unbreaks windows pathes. Change-Id: Id7314d2eb0eff85ace70f1bc3e542ad54ff12210 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -120,6 +120,7 @@ public:
|
|||||||
file = fi.absoluteFilePath();
|
file = fi.absoluteFilePath();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
description = unescape(description);
|
||||||
|
|
||||||
hub->addTask(ProjectExplorer::Task(type, description, file, line, QLatin1String(Constants::TASKLISTTASK_ID)));
|
hub->addTask(ProjectExplorer::Task(type, description, file, line, QLatin1String(Constants::TASKLISTTASK_ID)));
|
||||||
}
|
}
|
||||||
@@ -133,11 +134,7 @@ public:
|
|||||||
if (line.startsWith(QChar('#')))
|
if (line.startsWith(QChar('#')))
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
result = line.split(QChar('\t'));
|
return line.split(QChar('\t'));
|
||||||
for (int i = 0; i < result.count(); ++i)
|
|
||||||
result[i] = unescape(result.at(i));
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString unescape(const QString &input) const
|
QString unescape(const QString &input) const
|
||||||
|
|||||||
Reference in New Issue
Block a user