ProjectExplorer: Fix hovering over cleared issues

Avoid providing clickable file paths of non-existing items.

Change-Id: If2da6c5a2efdfc57faab12f8a9b97682adb6034e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2022-08-24 13:10:24 +02:00
committed by Christian Kandeler
parent 5f88511fe7
commit 14a64254da

View File

@@ -815,6 +815,7 @@ void TaskDelegate::emitSizeHintChanged(const QModelIndex &index)
void TaskDelegate::currentChanged(const QModelIndex &current, const QModelIndex &previous) void TaskDelegate::currentChanged(const QModelIndex &current, const QModelIndex &previous)
{ {
m_hrefs.clear();
emit sizeHintChanged(current); emit sizeHintChanged(current);
emit sizeHintChanged(previous); emit sizeHintChanged(previous);
} }