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