]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/podcast_configuration.cpp
Removes trailing spaces. Removes tabs.
[vlc] / modules / gui / qt4 / dialogs / podcast_configuration.cpp
index 343cd88271a96c21f9edebb6ab6f0ccccf7ad4f1..a67148bd16f332e2f943d9b73eebd33da04f95cb 100644 (file)
@@ -27,6 +27,11 @@ PodcastConfigurationDialog::PodcastConfigurationDialog( intf_thread_t *_p_intf )
     :p_intf( _p_intf )
 {
     ui.setupUi( this );
+    QPushButton *okButton = new QPushButton( qtr( "OK" ), this );
+    QPushButton *cancelButton = new QPushButton( qtr( "Cancel" ), this );
+    ui.okCancel->addButton( okButton, QDialogButtonBox::AcceptRole );
+    ui.okCancel->addButton( cancelButton, QDialogButtonBox::RejectRole );
     CONNECT( ui.podcastAdd, clicked(), this, add() );
     CONNECT( ui.podcastDelete, clicked(), this, remove() );
 
@@ -56,10 +61,20 @@ void PodcastConfigurationDialog::accept()
     }
     const char *psz_urls = qtu( urls );
     config_PutPsz( p_intf, "podcast-urls", psz_urls );
+    vlc_object_t *p_obj = (vlc_object_t*)
+                          vlc_object_find_name( p_intf->p_libvlc,
+                                                "podcast", FIND_CHILD );
+    if( p_obj )
+    {
+        var_SetString( p_obj, "podcast-urls", psz_urls );
+        vlc_object_release( p_obj );
+    }
+
     if( playlist_IsServicesDiscoveryLoaded( THEPL, "podcast" ) )
     {
-        msg_Info( p_intf, "You will need to reload the podcast module for changes to be used (FIXME)" );
+        msg_Dbg( p_intf, "You will need to reload the podcast module to take into account deleted podcast urls" );
     }
+
     QDialog::accept();
 }