[vlc-devel] commit: Workaround for Qt bug #176201 (affect only Qt 4.5.0) ( Ludovic Fauvet )

git version control git at videolan.org
Tue Mar 31 01:07:04 CEST 2009


vlc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Tue Mar 31 00:17:51 2009 +0200| [059438ecccb5503ef26853dd8a9ffdd87dd5afb6] | committer: Jean-Baptiste Kempf 

Workaround for Qt bug #176201 (affect only Qt 4.5.0)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=059438ecccb5503ef26853dd8a9ffdd87dd5afb6
---

 modules/gui/qt4/menus.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index d9231d9..7ba3f3a 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1393,7 +1393,15 @@ void QVLCMenu::updateRecents( intf_thread_t *p_intf )
         RecentsMRL* rmrl = RecentsMRL::getInstance( p_intf );
         QList<QString> l = rmrl->recents();
 
+#if QT_VERSION == 0x040500
+        //Workaround for Qt bug #176201
+        QList<QAction*> actions = recentsMenu->actions();
+        for(int i = 0; i < actions.size(); ++i)
+            actions.at(i)->deleteLater();
+#else
         recentsMenu->clear();
+#endif
+
         if( !l.size() )
         {
             action = recentsMenu->addAction( qtr(" - Empty - ") );




More information about the vlc-devel mailing list