From: Jean-Baptiste Kempf Date: Thu, 31 Jan 2008 00:52:15 +0000 (+0000) Subject: Qt4 - Updates: actually call the udpater when needed. Part 3 X-Git-Tag: 0.9.0-test0~3083 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5e87283e04cd78d62e09ae7f4377023c55ecb7f7;p=vlc Qt4 - Updates: actually call the udpater when needed. Part 3 --- diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp index a7f0fc21ca..ea557087bc 100644 --- a/modules/gui/qt4/qt4.cpp +++ b/modules/gui/qt4/qt4.cpp @@ -35,6 +35,7 @@ #include "dialogs_provider.hpp" #include "input_manager.hpp" #include "main_interface.hpp" +#include "dialogs/help.hpp" /* update */ #ifdef HAVE_X11_XLIB_H #include @@ -351,13 +352,14 @@ static void Init( intf_thread_t *p_intf ) QSettings settings( "vlc", "vlc-qt-interface" ); if( QDate::currentDate() > settings.value( "updatedate" ).toDate().addDays( interval ) ) { - msg_Dbg( p_intf, "Someone said I need to update" ); - //FIXME Call the updater. + msg_Dbg( p_intf, "Someone said I need to check updates" ); + /* The constructor of the update Dialog will do the 1st request */ + UpdateDialog::getInstance( p_intf ); settings.setValue( "updatedate", QDate::currentDate() ); } } #endif - + /* Launch */ app->exec();