Add support for SVG patterns in wallpapers.

This commit is contained in:
John Preston
2021-08-11 19:56:12 +03:00
parent e8fc874456
commit 6cadf54874
7 changed files with 62 additions and 29 deletions

View File

@@ -35,9 +35,7 @@ DocumentGenericPreview DocumentGenericPreview::Create(
: document->filename())
: tr::lng_message_empty(tr::now)).toLower();
auto lastDot = name.lastIndexOf('.');
const auto mime = document
? document->mimeString().toLower()
: QString();
const auto mime = document ? document->mimeString() : QString();
if (name.endsWith(qstr(".doc")) ||
name.endsWith(qstr(".docx")) ||
name.endsWith(qstr(".txt")) ||