Check input profile name for duplicates in New/Rename (#4779)

* Check input profile name for duplicates in New/Rename

* DRY + separation of concerns

* simplify return branching

* make readonly function const
This commit is contained in:
Martin Pecánek 2019-05-24 23:28:59 +02:00 committed by James Rowe
parent 5727e1b43d
commit 186ffc235f
2 changed files with 22 additions and 0 deletions

View file

@ -119,4 +119,7 @@ private:
void NewProfile();
void DeleteProfile();
void RenameProfile();
bool IsProfileNameDuplicate(const QString& name) const;
void WarnProposedProfileNameIsDuplicate();
};