Crash protection. part I
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user