Commit 00db9bd7 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix Browser model crash when email is missing a header

BUG: 356747
FIXED-IN: 16.08.1
parent 1e38a73a
......@@ -94,11 +94,23 @@ public:
switch (column) {
case 0:
return mail->subject()->asUnicodeString();
if (mail->subject()) {
return mail->subject()->asUnicodeString();
} else {
return QStringLiteral("(No subject)");
}
case 1:
return mail->from()->asUnicodeString();
if (mail->from()) {
return mail->from()->asUnicodeString();
} else {
return QString();
}
case 2:
return mail->date()->asUnicodeString();
if (mail->date()) {
return mail->date()->asUnicodeString();
} else {
return QString();
}
}
return QVariant();
......
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