Commit 850f20e1 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger/Tooltips: Fix a crash when closing all from unpinned tips.

Leave event would close the widget.
parent fe33a098
......@@ -506,7 +506,8 @@ void PinnableToolTipWidget::toolButtonClicked()
void PinnableToolTipWidget::leaveEvent(QEvent *)
{
if (m_pinState == Unpinned && QApplication::keyboardModifiers() == Qt::NoModifier) {
if (!m_menu->isVisible() && m_pinState == Unpinned
&& QApplication::keyboardModifiers() == Qt::NoModifier) {
if (debugToolTips)
qDebug("ToolTipWidget::leaveEvent: closing %p", this);
close();
......
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