From 5e87283e04cd78d62e09ae7f4377023c55ecb7f7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 31 Jan 2008 00:52:15 +0000 Subject: [PATCH] Qt4 - Updates: actually call the udpater when needed. Part 3 --- modules/gui/qt4/qt4.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); -- 2.39.2