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:
parent
c03fb00ac1
commit
ef3c0f54d0
2 changed files with 15 additions and 14 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue