[vlc-commits] Fixed Santa hat not showing on cone after playback ends or is stopped even if it should
David Berdik
git at videolan.org
Wed Jan 6 10:26:31 UTC 2021
vlc/vlc-3.0 | branch: master | David Berdik <dgberdik at gmail.com> | Tue Dec 29 21:57:41 2020 -0500| [ce327db9c472e15606c7736980f0a512aaa4ab1e] | committer: Pierre Lamot
Fixed Santa hat not showing on cone after playback ends or is stopped even if it should
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=ce327db9c472e15606c7736980f0a512aaa4ab1e
---
modules/gui/qt/components/interface_widgets.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index 78dbc2f9c3..ced7d9f8c7 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -35,6 +35,7 @@
#include "menus.hpp" /* Popup menu on bgWidget */
+#include <QDate>
#include <QLabel>
#include <QToolButton>
#include <QPalette>
@@ -445,6 +446,8 @@ void BackgroundWidget::titleUpdated( const QString& title )
i_pos + 5 == title.indexOf( "Bi" /* directional */ "ll",
i_pos, Qt::CaseInsensitive ) )
updateDefaultArt( ":/logo/vlc128-kb.png" );
+ else if( QDate::currentDate().dayOfYear() >= QT_XMAS_JOKE_DAY )
+ updateDefaultArt( ":/logo/vlc128-xmas.png" );
else
updateDefaultArt( ":/logo/vlc128.png" );
}
More information about the vlc-commits
mailing list