]> git.sesse.net Git - vlc/commitdiff
Add a public function to create the p_update struct.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 3 Feb 2008 18:38:10 +0000 (18:38 +0000)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 3 Feb 2008 18:38:10 +0000 (18:38 +0000)
modules/gui/qt4/dialogs/help.cpp
modules/gui/qt4/dialogs/help.hpp

index 075b59d351e4c17b844301a31771f61e6dbe5f29..1ac16970358fbd77c69205ba9da844e50e858a59 100644 (file)
@@ -217,8 +217,8 @@ UpdateDialog::UpdateDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
     BUTTONACT( updateButton, UpdateOrDownload() );
     BUTTONACT( closeButton, close() );
 
-    /* create the update structure and the callback */
-    p_update = update_New( _p_intf );
+    /* Create the update structure */
+    initUpdate();
     b_checked = false;
 
     /* Check for updates */
@@ -290,5 +290,10 @@ void UpdateDialog::updateNotify( bool b_result )
     updateButton->setEnabled( true );
 }
 
+/* Initialise the p_update struct */
+void UpdateDialog::initUpdate()
+{
+    p_update = update_New( p_intf );
+}
 
 #endif
index e32930ac21ad57740513bccbc301456142cb6c93..9b987528d96a8235da8715e34aa10246f5589362 100644 (file)
@@ -92,6 +92,7 @@ public:
     }
     virtual ~UpdateDialog();
     void updateNotify( bool );
+    void initUpdate();
 
 private:
     UpdateDialog( intf_thread_t * );