]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/src/dialogs.cpp
skins2: update to latest change in core
[vlc] / modules / gui / skins2 / src / dialogs.cpp
index 611468aa0144ffc9cf7725c368c4a6d1e0afa9af..304172bcdcfdc1736480a20b99709fa30b1fce82 100644 (file)
@@ -158,6 +158,9 @@ bool Dialogs::init()
     if( m_pProvider == NULL )
         return false;
 
+    // Attach the dialogs provider to its parent interface
+    vlc_object_attach( m_pProvider, getIntf() );
+
     m_pModule = module_need( m_pProvider, "dialogs provider", NULL, false );
     if( m_pModule == NULL )
     {
@@ -167,16 +170,6 @@ bool Dialogs::init()
         return false;
     }
 
-    // Attach the dialogs provider to its parent interface
-    vlc_object_attach( m_pProvider, getIntf() );
-
-    // Initialize dialogs provider
-    // (returns as soon as initialization is done)
-    if( m_pProvider->pf_run )
-    {
-        m_pProvider->pf_run( m_pProvider );
-    }
-
     /* Register callback for the intf-popupmenu variable */
     var_AddCallback( getIntf()->p_libvlc, "intf-popupmenu",
                      PopupMenuCB, this );