Commit fc2d1812 authored by Dāvis Mosāns's avatar Dāvis Mosāns
Browse files

Fix rare ToolTipManager crash on exit

If tooltips are enabled and you hover over item
while immediately closing Dolphin sometimes it would crash
because native parent might have been destroyed before
DolphinView
parent 957e6309
Pipeline #191132 passed with stage
in 7 minutes and 58 seconds
......@@ -1225,7 +1225,10 @@ void DolphinView::slotItemHovered(int index)
itemRect.moveTo(pos);
#ifdef HAVE_BALOO
m_toolTipManager->showToolTip(item, itemRect, nativeParentWidget()->windowHandle());
auto nativeParent = nativeParentWidget();
if (nativeParent) {
m_toolTipManager->showToolTip(item, itemRect, nativeParent->windowHandle());
}
#endif
}
......
Supports Markdown
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