Commit 5e87283e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Updates: actually call the udpater when needed. Part 3

parent 2f20315a
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include "main_interface.hpp" #include "main_interface.hpp"
#include "dialogs/help.hpp" /* update */
#ifdef HAVE_X11_XLIB_H #ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h> #include <X11/Xlib.h>
...@@ -351,8 +352,9 @@ static void Init( intf_thread_t *p_intf ) ...@@ -351,8 +352,9 @@ static void Init( intf_thread_t *p_intf )
QSettings settings( "vlc", "vlc-qt-interface" ); QSettings settings( "vlc", "vlc-qt-interface" );
if( QDate::currentDate() > settings.value( "updatedate" ).toDate().addDays( interval ) ) if( QDate::currentDate() > settings.value( "updatedate" ).toDate().addDays( interval ) )
{ {
msg_Dbg( p_intf, "Someone said I need to update" ); msg_Dbg( p_intf, "Someone said I need to check updates" );
//FIXME Call the updater. /* The constructor of the update Dialog will do the 1st request */
UpdateDialog::getInstance( p_intf );
settings.setValue( "updatedate", QDate::currentDate() ); settings.setValue( "updatedate", QDate::currentDate() );
} }
} }
......
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