Enhancement of the webui preference and of the quote escape for javascript

This commit is contained in:
racam 2015-04-27 20:44:12 +02:00
parent 80b526d1af
commit d7ac142885
3 changed files with 16 additions and 10 deletions

View file

@ -1076,7 +1076,11 @@ void Preferences::setIgnoreSlowTorrentsForQueueing(bool ignore)
bool Preferences::isWebUiEnabled() const
{
#ifdef DISABLE_GUI
return true;
#else
return value("Preferences/WebUI/Enabled", false).toBool();
#endif
}
void Preferences::setWebUiEnabled(bool enabled)