small bugfixes.
bugfix. unknown default key could lead to crash.
Merge branch 'master' of https://github.com/wpfff/qtlab-user-diamond-master