summary refs log tree commit diff
path: root/src/CombinedImagePackModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CombinedImagePackModel.cpp')
-rw-r--r--src/CombinedImagePackModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CombinedImagePackModel.cpp b/src/CombinedImagePackModel.cpp

index 58400fb1..6dadbef4 100644 --- a/src/CombinedImagePackModel.cpp +++ b/src/CombinedImagePackModel.cpp
@@ -60,7 +60,7 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const return QStringLiteral( "<img data-mx-emoticon height=32 src=\"%1\" alt=\"%2\" title=\"%2\">") .arg(QString::fromStdString(images[index.row()].image.url).toHtmlEscaped(), - images[index.row()].image.body.length() > 0 + !images[index.row()].image.body.empty() ? QString::fromStdString(images[index.row()].image.body) : images[index.row()].shortcode); case Roles::Url: