diff --git a/qrenderdoc/Widgets/Extended/RDTreeView.cpp b/qrenderdoc/Widgets/Extended/RDTreeView.cpp index 2ade258a2..dc00957a5 100644 --- a/qrenderdoc/Widgets/Extended/RDTreeView.cpp +++ b/qrenderdoc/Widgets/Extended/RDTreeView.cpp @@ -484,6 +484,7 @@ void RDTreeView::modelAboutToBeReset() void RDTreeView::rowsAboutToBeRemoved(const QModelIndex &parent, int first, int last) { m_currentHoverIndex = QModelIndex(); + QTreeView::rowsAboutToBeRemoved(parent, first, last); } void RDTreeView::columnsAboutToBeRemoved(const QModelIndex &parent, int first, int last) diff --git a/qrenderdoc/Widgets/Extended/RDTreeView.h b/qrenderdoc/Widgets/Extended/RDTreeView.h index 55c5bbf0c..1836ea953 100644 --- a/qrenderdoc/Widgets/Extended/RDTreeView.h +++ b/qrenderdoc/Widgets/Extended/RDTreeView.h @@ -182,7 +182,7 @@ protected: private slots: void modelAboutToBeReset(); - void rowsAboutToBeRemoved(const QModelIndex &parent, int first, int last); + void rowsAboutToBeRemoved(const QModelIndex &parent, int first, int last) override; void columnsAboutToBeRemoved(const QModelIndex &parent, int first, int last); void rowsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow);