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
parent 957e6309
Pipeline #191132 passed with stage
in 7 minutes and 58 seconds
......@@ -1225,7 +1225,10 @@ void DolphinView::slotItemHovered(int index)
m_toolTipManager->showToolTip(item, itemRect, nativeParentWidget()->windowHandle());
auto nativeParent = nativeParentWidget();
if (nativeParent) {
m_toolTipManager->showToolTip(item, itemRect, nativeParent->windowHandle());
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