diff --git a/gui/resultsview.cpp b/gui/resultsview.cpp index b89be07b3..bb34b8e12 100644 --- a/gui/resultsview.cpp +++ b/gui/resultsview.cpp @@ -277,6 +277,12 @@ void ResultsView::UpdateDetails(const QModelIndex &index) QStandardItemModel *model = qobject_cast(mUI.mTree->model()); QStandardItem *item = model->itemFromIndex(index); + if (!item) + { + mUI.mDetails->setText(""); + return; + } + // Make sure we are working with the first column if (item->parent() && item->column() != 0) item = item->parent()->child(item->row(), 0);