Rename scene signals

the signals for scenes could have potentially conflicted with default
source signals.  "remove" should be used for source removal, for
example.  Changed the scene signals to "item-add" and "item-remove" for
its items.
This commit is contained in:
jp9000
2014-02-23 18:58:01 -07:00
parent 75b66872e4
commit 096cce9a86
2 changed files with 6 additions and 5 deletions

View File

@@ -119,9 +119,10 @@ void OBSBasic::AddScene(OBSSource source)
ui->scenes->addItem(item);
signal_handler_t handler = obs_source_signalhandler(source);
signal_handler_connect(handler, "add", OBSBasic::SceneItemAdded, this);
signal_handler_connect(handler, "remove", OBSBasic::SceneItemRemoved,
this);
signal_handler_connect(handler, "item-add",
OBSBasic::SceneItemAdded, this);
signal_handler_connect(handler, "item-remove",
OBSBasic::SceneItemRemoved, this);
}
void OBSBasic::RemoveScene(OBSSource source)