|
@@ -508,8 +508,8 @@ void ctkPopupWidget::updatePopup()
|
|
|
QWidget* mouseOver = (d->AutoShow || d->AutoHide) ? d->mouseOver() : 0;
|
|
|
if ((d->AutoShow ||
|
|
|
// Even if there is no AutoShow, we might still want to reopen the popup
|
|
|
- // when closing it inadvertently
|
|
|
- (d->AutoHide && d->isClosing())) &&
|
|
|
+ // when closing it inadvertently, except if we are un-pin-ing the popup
|
|
|
+ (d->AutoHide && d->isClosing() && this->property("AutoShowOnClose").toBool())) &&
|
|
|
// to be automatically open, the mouse has to be over a child widget
|
|
|
mouseOver &&
|
|
|
// disable opening the popup when the popup is disabled
|