Fix current device population in config dialog

The index was only incremented in debug mode breaking the current device selection in release mode. Please merge. Thanks a lot for a great application.