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 )
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
......@@ -92,6 +92,7 @@ public:
}
virtual ~UpdateDialog();
void updateNotify( bool );
void initUpdate();
private:
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