Commit 059438ec authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

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

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent bdd085ad
......@@ -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 - ") );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment