configure_hotkeys: Move conflict detection logic to IsUsedKey()

We don't need to extract the entire set of hotkeys into a list and then
iterate through it. We can traverse the list and early-exit if we're
able to.
This commit is contained in:
Lioncash
2019-05-25 04:03:15 -04:00
parent c03fb00ac1
commit ef3c0f54d0
2 changed files with 15 additions and 14 deletions

View File

@ -34,7 +34,6 @@ public:
private:
void Configure(QModelIndex index);
bool IsUsedKey(QKeySequence key_sequence) const;
QList<QKeySequence> GetUsedKeyList() const;
std::unique_ptr<Ui::ConfigureHotkeys> ui;