Commit 18273cd8 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 f5503e9a
......@@ -121,7 +121,7 @@ void Thumbnailer::generatePreview()
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;
}
......
Supports Markdown
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