xbmc/xbmc — pull request #4731 by jmarshallnz (2014-05-16 23:35:04+00:00)
Title: [settings] check control types - the id's have changed so old skins crash

Fairly straight forward, though I'm thinking of two changes to make things cleaner:

1. Make a non-const version of GetControl() to save the insane copy n pasting of c-style casts all over the show.
2. Use dynamic_cast where we need to upcast, so we can NULL check on type anyway.