Fixed improper use of qSettings
Fixed wrong cast
Fixed editor not loading settings