macos cannot have widgets/items with ID of 0

master
jp9000 2013-12-30 13:33:13 -07:00
parent b002c78fe7
commit f03d90639a
1 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ void OBSBasic::AddSourcePopup()
type, wxGetApp().GetLocale());
types.push_back(type);
popup->Append((int)idx, wxString(name, wxConvUTF8));
popup->Append((int)idx+1, wxString(name, wxConvUTF8));
idx++;
}
@ -326,7 +326,7 @@ void OBSBasic::AddSourcePopup()
if (idx) {
int id = WXDoPopupMenu(this, popup.get());
if (id != -1)
AddSource(scene, types[id]);
AddSource(scene, types[id-1]);
}
obs_scene_release(scene);