1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-30 19:15:08 +01:00

Fix a funny fading bug in the podcast info widget that would occur because a ResizeEvent was being sent with oldSize() == size().

This commit is contained in:
David Sansome 2012-03-12 21:12:01 +00:00
parent 096b90716d
commit 69779374c2

View File

@ -50,6 +50,12 @@ bool WidgetFadeHelper::eventFilter(QObject* obj, QEvent* event) {
if (!isVisible())
return false;
QResizeEvent* re = static_cast<QResizeEvent*>(event);
if (re->oldSize() == re->size()) {
// Ignore phoney resize events
return false;
}
// Get a new capture of the parent
hide();
CaptureParent();