Commit ea8e3287 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: Warn about Qt version 4.5.0

This version is quite broken...
parent 0fa8b0e0
......@@ -1408,14 +1408,7 @@ 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() )
{
......
......@@ -39,6 +39,9 @@
#if ( QT_VERSION < 0x040300 )
# error Update your Qt version
#endif
#if QT_VERSION == 0x040500
# warning Please update Qt version to 4.5.1. This warning will become an error.
#endif
enum {
QT_NORMAL_MODE = 0,
......
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