Commit 518f3a21 authored by Rémi Duraffort's avatar Rémi Duraffort

Add a public function to create the p_update struct.

parent 014c5b76
...@@ -217,8 +217,8 @@ UpdateDialog::UpdateDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -217,8 +217,8 @@ UpdateDialog::UpdateDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
BUTTONACT( updateButton, UpdateOrDownload() ); BUTTONACT( updateButton, UpdateOrDownload() );
BUTTONACT( closeButton, close() ); BUTTONACT( closeButton, close() );
/* create the update structure and the callback */ /* Create the update structure */
p_update = update_New( _p_intf ); initUpdate();
b_checked = false; b_checked = false;
/* Check for updates */ /* Check for updates */
...@@ -290,5 +290,10 @@ void UpdateDialog::updateNotify( bool b_result ) ...@@ -290,5 +290,10 @@ void UpdateDialog::updateNotify( bool b_result )
updateButton->setEnabled( true ); updateButton->setEnabled( true );
} }
/* Initialise the p_update struct */
void UpdateDialog::initUpdate()
{
p_update = update_New( p_intf );
}
#endif #endif
...@@ -92,6 +92,7 @@ public: ...@@ -92,6 +92,7 @@ public:
} }
virtual ~UpdateDialog(); virtual ~UpdateDialog();
void updateNotify( bool ); void updateNotify( bool );
void initUpdate();
private: private:
UpdateDialog( intf_thread_t * ); UpdateDialog( intf_thread_t * );
......
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