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 <>
parent 02b4b8c4
......@@ -840,7 +840,8 @@ void TaskDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
const QString directory = QDir::toNativeSeparators(;
int secondBaseLine = + fm.ascent() + height + leading;
if ( {
if (
&& !directory.isEmpty()) {
QString fileNotFound = tr("File not found: %1").arg(directory);
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