fix build issues

This commit is contained in:
Stéphane L 2018-12-31 20:27:52 +01:00
parent 4f98b9e41b
commit 0391280c13
3 changed files with 4 additions and 4 deletions

View File

@ -218,7 +218,7 @@ void WSRequestHandler::SendResponse(obs_data_t* response) {
_response = obs_data_get_json(response); _response = obs_data_get_json(response);
if (Config::Current()->DebugEnabled) if (Config::Current()->DebugEnabled)
blog(LOG_DEBUG, "Response << '%s'", json.toUtf8().constData()); blog(LOG_DEBUG, "Response << '%s'", _response.toUtf8().constData());
} }
bool WSRequestHandler::hasField(QString name) { bool WSRequestHandler::hasField(QString name) {

View File

@ -94,9 +94,9 @@ void SettingsDialog::FormAccepted() {
conf->Save(); conf->Save();
if (conf->ServerEnabled) if (conf->ServerEnabled)
WSServer::Instance->Start(conf->ServerPort); WSServer::Instance->start(conf->ServerPort);
else else
WSServer::Instance->Stop(); WSServer::Instance->stop();
} }
SettingsDialog::~SettingsDialog() { SettingsDialog::~SettingsDialog() {

View File

@ -52,7 +52,7 @@ bool obs_module_load(void) {
WSEvents::Instance = new WSEvents(WSServer::Instance); WSEvents::Instance = new WSEvents(WSServer::Instance);
if (config->ServerEnabled) if (config->ServerEnabled)
WSServer::Instance->Start(config->ServerPort); WSServer::Instance->start(config->ServerPort);
// UI setup // UI setup
QAction* menu_action = (QAction*)obs_frontend_add_tools_menu_qaction( QAction* menu_action = (QAction*)obs_frontend_add_tools_menu_qaction(