ui: Avoid flickering when clearing empty errors table

This commit is contained in:
Eberhard Graether
2016-10-21 15:06:39 +02:00
parent 4d3a852de7
commit e557e04000
+5 -1
View File
@@ -145,7 +145,11 @@ void QtErrorView::doRefreshView()
void QtErrorView::doClear()
{
m_model->removeRows(0, m_model->rowCount());
if (!m_model->index(0, 0).data(Qt::DisplayRole).toString().isEmpty())
{
m_model->removeRows(0, m_model->rowCount());
}
m_errors.clear();
}