dangerously this could get called via tooltip
svn path=/trunk/KDE/kdelibs/; revision=1179171
This commit is contained in:
parent
cdc70740bd
commit
735c89c730
@ -279,6 +279,7 @@ void ToolTipManagerPrivate::createTipWidget()
|
|||||||
if (tipWidget) {
|
if (tipWidget) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tipWidget = new ToolTip(0);
|
tipWidget = new ToolTip(0);
|
||||||
QObject::connect(tipWidget, SIGNAL(activateWindowByWId(WId,Qt::MouseButtons,Qt::KeyboardModifiers,QPoint)),
|
QObject::connect(tipWidget, SIGNAL(activateWindowByWId(WId,Qt::MouseButtons,Qt::KeyboardModifiers,QPoint)),
|
||||||
q, SIGNAL(windowPreviewActivated(WId,Qt::MouseButtons,Qt::KeyboardModifiers,QPoint)));
|
q, SIGNAL(windowPreviewActivated(WId,Qt::MouseButtons,Qt::KeyboardModifiers,QPoint)));
|
||||||
@ -291,7 +292,7 @@ void ToolTipManagerPrivate::hideTipWidget()
|
|||||||
{
|
{
|
||||||
if (tipWidget) {
|
if (tipWidget) {
|
||||||
tipWidget->hide();
|
tipWidget->hide();
|
||||||
delete tipWidget;
|
tipWidget->deleteLater();
|
||||||
tipWidget = 0;
|
tipWidget = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user