Commit c709dcd3 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

TaskWindow: Don't complain about not finding files of task that have no file



Change-Id: Ied909ef47153186c9d661110bfaa5089c0296a21
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 02b4b8c4
......@@ -840,7 +840,8 @@ void TaskDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
const QString directory = QDir::toNativeSeparators(index.data(TaskModel::File).toString());
int secondBaseLine = positions.top() + fm.ascent() + height + leading;
if (index.data(TaskModel::FileNotFound).toBool()) {
if (index.data(TaskModel::FileNotFound).toBool()
&& !directory.isEmpty()) {
QString fileNotFound = tr("File not found: %1").arg(directory);
painter->setPen(Qt::red);
painter->drawText(positions.textAreaLeft(), secondBaseLine, fileNotFound);
......
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