mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
remove CloseButton::hideEvent()
That causes crashes when entering/leaving fullscreen mode when the tabbar has non-closable tabs. deleteLater() in the hideEvent left a dangling pointer in the corresponding QTabBarPrivate::Tab. The next re-layout of the tabs caused the crash when querying the size of the deleted closeButton: [...]
This commit is contained in:
parent
e8745590ac
commit
d08ec28d70
|
@ -647,15 +647,6 @@ void CloseButton::leaveEvent(QEvent* event)
|
||||||
QAbstractButton::leaveEvent(event);
|
QAbstractButton::leaveEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CloseButton::hideEvent(QHideEvent* event)
|
|
||||||
{
|
|
||||||
QAbstractButton::hideEvent(event);
|
|
||||||
|
|
||||||
if (!isVisible()) {
|
|
||||||
deleteLater();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void CloseButton::paintEvent(QPaintEvent*)
|
void CloseButton::paintEvent(QPaintEvent*)
|
||||||
{
|
{
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
|
|
@ -128,7 +128,6 @@ public:
|
||||||
|
|
||||||
void enterEvent(QEvent* event);
|
void enterEvent(QEvent* event);
|
||||||
void leaveEvent(QEvent* event);
|
void leaveEvent(QEvent* event);
|
||||||
void hideEvent(QHideEvent* event);
|
|
||||||
void paintEvent(QPaintEvent* event);
|
void paintEvent(QPaintEvent* event);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user