Profile dialog no longer crashes if there are no profiles.
No longer sometimes crashes when deleting single profile.
Release.
Can now delete profiles even when there is only 1.
Release