Change the edit profile dialog so that the profile can't be saved if
name is empty or if the name matches the name of another already
existing profile. Now you can't Apply or OK the changes if either of those conditions is true.
If a profile gets renamed:
- Assign the same shortcut of the old profile to the newly renamed profile
- Delete the old profile (and its config file on disk). This fixes BUG:358084
Change the Manage Profiles dialog:
- The profile can only be renamed from the edit profile dialog so that the check to see that it's not empty or going to overwrite another profile is used
- Double clicking the profile name opens the edit profile dialog