mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
neutrino.cpp: add signal OnBeforeRestart
This allows to handle events inside from objects with
matching slots and events without explicit
calls in neutrino.cpp.
Used here general for stopping of thread in timer object.
In some cases it could be necessary to stop timer thread
otherwise it is possible that restart is blocked here.
This happens here automatically, without separate instances
of timer objects.
Conflicts:
src/neutrino.h
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8f621ef472
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-16 (Thu, 16 Oct 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -3869,6 +3869,9 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else if(actionKey=="restart") {
|
||||
//usage of slots from any classes
|
||||
OnBeforeRestart();
|
||||
|
||||
if (recordingstatus)
|
||||
DisplayErrorMessage(g_Locale->getText(LOCALE_SERVICEMENU_RESTART_REFUSED_RECORDING));
|
||||
else {
|
||||
|
Reference in New Issue
Block a user