Merge pull request #1326 from admshao/transition_rename_fire_event

UI: Add missing OBS_FRONTEND_EVENT_TRANSITION_LIST_CHANGED
master
Jim 2018-07-18 00:54:46 -07:00 committed by GitHub
commit af596592db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -559,6 +559,10 @@ void OBSBasic::RenameTransition()
int idx = ui->transitions->findData(variant);
if (idx != -1) {
ui->transitions->setItemText(idx, QT_UTF8(name.c_str()));
if (api)
api->on_event(OBS_FRONTEND_EVENT_TRANSITION_LIST_CHANGED);
ClearQuickTransitionWidgets();
RefreshQuickTransitions();
}