you can do this "inline" by using a QSet<QString> on the theme names you've accessed so far, and asserting if you see one twice

I'd also make that a qFatal - you don't want to try work around themes broken so badly