Commit d314bce5 authored by Albert Astals Cid's avatar Albert Astals Cid

Fix crash when searching

Test Plan: Put the mouse over the left bar to get a tooltip, then type gibbership and remove it a few times, get it to crash

Reviewers: mart

Reviewed By: mart

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision:
parent 698693d5
......@@ -117,7 +117,11 @@ void ToolTipManager::hideToolTip()
void ToolTipManager::prepareToolTip()
showToolTip( d->item );
// item may have gone away since we're triggered by a timer
MenuItem * menuItem = d->model->data( d->item, Qt::UserRole ).value<MenuItem*>();
if (menuItem) {
showToolTip( d->item );
void ToolTipManager::showToolTip( QModelIndex menuItem )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment