Merge branch 'ni/tuxbox' into ni/mp/tuxbox

Origin commit data
------------------
Commit: 6dd6df52fb
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-18 (Mon, 18 Sep 2017)
This commit is contained in:
vanhofen
2017-09-18 21:53:44 +02:00
29 changed files with 50 additions and 499 deletions

View File

@@ -144,13 +144,14 @@ bool CTouchFileNotifier::changeNotify(const neutrino_locale_t, void * data)
bool CFlagFileNotifier::changeNotify(const neutrino_locale_t, void * data)
{
std::ostringstream buf;
buf.str("");
buf << FLAGDIR << "/." << filename;
const char *flagfile = buf.str().c_str();
std::string flagfile = buf.str();
if ((*(int *)data) != 0)
{
FILE * fd = fopen(flagfile, "w");
FILE * fd = fopen(flagfile.c_str(), "w");
if (fd)
{
fclose(fd);
@@ -247,7 +248,7 @@ bool CFlagFileNotifier::changeNotify(const neutrino_locale_t, void * data)
if (my_system(3, "service", filename, "stop") != 0)
printf("[CFlagFileNotifier] executing failed\n");
}
remove(flagfile);
remove(flagfile.c_str());
}
return menu_return::RETURN_REPAINT;
}