]> git.sesse.net Git - vlc/commitdiff
Qt4 - Updates: actually call the udpater when needed. Part 3
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 31 Jan 2008 00:52:15 +0000 (00:52 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 31 Jan 2008 00:52:15 +0000 (00:52 +0000)
modules/gui/qt4/qt4.cpp

index a7f0fc21ca315f4c07bcbbb7f54cae53f01770da..ea557087bcfbf3bc14c88b4bce77c201395884a0 100644 (file)
@@ -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 <X11/Xlib.h>
@@ -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();