Commit 57a4845c authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Don't generate previews of zero size

A `QSize(0,0)` is still valid... Fixes sometimes preview not showing
and other problems with the thumbnailer.

CCBUG: 430862


(cherry picked from commit 5d81c41e)
parent c4a3a4e5
...@@ -122,7 +122,7 @@ void Thumbnailer::generatePreview() ...@@ -122,7 +122,7 @@ void Thumbnailer::generatePreview()
return; return;
} }
if (!m_url.isValid() || !m_url.isLocalFile() || !m_size.isValid()) { if (!m_url.isValid() || !m_url.isLocalFile() || !m_size.isValid() || m_size.isEmpty()) {
return; return;
} }
......
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