ui: Avoid flickering when clearing empty errors table
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user