mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-10 23:28:28 +02:00
webtv-setup: add possibility to edit webtv-file manually
Origin commit data
------------------
Branch: ni/coolstream
Commit: a7c8e4c52b
Author: TangoCash <eric@loxat.de>
Date: 2018-09-21 (Fri, 21 Sep 2018)
Origin message was:
------------------
- webtv-setup: add possibility to edit webtv-file manually
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -98,6 +98,23 @@ int CWebTVSetup::exec(CMenuTarget *parent, const std::string &actionKey)
|
|||||||
CMenuItem *item = m->getItem(selected);
|
CMenuItem *item = m->getItem(selected);
|
||||||
CMenuForwarder *f = static_cast<CMenuForwarder *>(item);
|
CMenuForwarder *f = static_cast<CMenuForwarder *>(item);
|
||||||
std::string dirname(f->getName());
|
std::string dirname(f->getName());
|
||||||
|
if (strstr(dirname.c_str(), "://"))
|
||||||
|
{
|
||||||
|
std::string entry = dirname;
|
||||||
|
|
||||||
|
CKeyboardInput *e = new CKeyboardInput(LOCALE_WEBTV_XML_ENTER, &entry, 50);
|
||||||
|
e->exec(this, "");
|
||||||
|
delete e;
|
||||||
|
|
||||||
|
if (entry.compare(dirname) != 0)
|
||||||
|
{
|
||||||
|
f->setName(entry);
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
dirname = dirname.substr(0, dirname.rfind('/'));
|
dirname = dirname.substr(0, dirname.rfind('/'));
|
||||||
if (fileBrowser.exec(dirname.c_str()))
|
if (fileBrowser.exec(dirname.c_str()))
|
||||||
{
|
{
|
||||||
@@ -105,6 +122,7 @@ int CWebTVSetup::exec(CMenuTarget *parent, const std::string &actionKey)
|
|||||||
g_settings.last_webtv_dir = dirname;
|
g_settings.last_webtv_dir = dirname;
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
if (actionKey == "a" /* add */)
|
if (actionKey == "a" /* add */)
|
||||||
|
Reference in New Issue
Block a user