Crash protection. part I

This commit is contained in:
2025-12-20 01:23:57 +01:00
parent 826e506d00
commit 554c4a96cb
11 changed files with 202 additions and 219 deletions

View File

@@ -272,7 +272,8 @@ void BCItemDelegate::clearAllHighlights()
void BCItemDelegate::updateRow(int row)
{
if (_view && row >= 0) {
if (_view && _view->model() && row >= 0)
{
QModelIndex idx = _view->model()->index(row, 0);
QRect rect = _view->visualRect(idx);
if (!rect.isEmpty()) {