Commit 3990277e authored by Jean-Philippe André's avatar Jean-Philippe André Committed by Jean-Philippe André

Extensions/Qt: emit extensionsUpdated() on load/unloa

parent eaa7302d
...@@ -71,6 +71,7 @@ bool ExtensionsManager::loadExtensions() ...@@ -71,6 +71,7 @@ bool ExtensionsManager::loadExtensions()
if( !p_extensions_manager ) if( !p_extensions_manager )
{ {
b_failed = true; b_failed = true;
emit extensionsUpdated();
return false; return false;
} }
vlc_object_attach( p_extensions_manager, p_intf ); vlc_object_attach( p_extensions_manager, p_intf );
...@@ -84,6 +85,7 @@ bool ExtensionsManager::loadExtensions() ...@@ -84,6 +85,7 @@ bool ExtensionsManager::loadExtensions()
vlc_object_release( p_extensions_manager ); vlc_object_release( p_extensions_manager );
p_extensions_manager = NULL; p_extensions_manager = NULL;
b_failed = true; b_failed = true;
emit extensionsUpdated();
return false; return false;
} }
...@@ -98,11 +100,13 @@ bool ExtensionsManager::loadExtensions() ...@@ -98,11 +100,13 @@ bool ExtensionsManager::loadExtensions()
vlc_object_release( p_extensions_manager ); vlc_object_release( p_extensions_manager );
p_extensions_manager = NULL; p_extensions_manager = NULL;
b_failed = true; b_failed = true;
emit extensionsUpdated();
return false; return false;
} }
b_unloading = false; b_unloading = false;
} }
b_failed = false; b_failed = false;
emit extensionsUpdated();
return true; return true;
} }
...@@ -114,6 +118,7 @@ void ExtensionsManager::unloadExtensions() ...@@ -114,6 +118,7 @@ void ExtensionsManager::unloadExtensions()
module_unneed( p_extensions_manager, p_extensions_manager->p_module ); module_unneed( p_extensions_manager, p_extensions_manager->p_module );
vlc_object_release( p_extensions_manager ); vlc_object_release( p_extensions_manager );
p_extensions_manager = NULL; p_extensions_manager = NULL;
emit extensionsUpdated();
ExtensionsDialogProvider::killInstance(); ExtensionsDialogProvider::killInstance();
} }
...@@ -121,6 +126,7 @@ void ExtensionsManager::reloadExtensions() ...@@ -121,6 +126,7 @@ void ExtensionsManager::reloadExtensions()
{ {
unloadExtensions(); unloadExtensions();
loadExtensions(); loadExtensions();
emit extensionsUpdated();
} }
void ExtensionsManager::menu( QMenu *current ) void ExtensionsManager::menu( QMenu *current )
......
...@@ -89,6 +89,9 @@ private: ...@@ -89,6 +89,9 @@ private:
QSignalMapper *menuMapper; QSignalMapper *menuMapper;
bool b_unloading; ///< Work around threads + emit issues, see isUnloading bool b_unloading; ///< Work around threads + emit issues, see isUnloading
bool b_failed; ///< Flag set to true if we could not load the module bool b_failed; ///< Flag set to true if we could not load the module
signals:
void extensionsUpdated();
}; };
#endif // EXTENSIONS_MANAGER_HPP #endif // EXTENSIONS_MANAGER_HPP
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