app: always clear viewer

This commit is contained in:
MattKC 2024-07-04 11:03:42 -07:00
parent ac4921eddf
commit c3b94cc1ac

View file

@ -18,8 +18,9 @@ void Viewer::paintGL()
{
QPainter p(this);
p.fillRect(this->rect(), Qt::black);
if (m_image.isNull()) {
p.fillRect(this->rect(), Qt::black);
return;
}