Fix MultiKeyEdit clear action not re-aligning key sequences
This commit is contained in:
parent
2fb3bf4e26
commit
9a3609ee6d
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ void MultiKeyEdit::onEditingFinished() {
|
|||
void MultiKeyEdit::showDefaultContextMenu(QLineEdit *lineEdit, const QPoint &pos) {
|
||||
QMenu menu(this);
|
||||
QAction clearAction("Clear Shortcut", &menu);
|
||||
connect(&clearAction, &QAction::triggered, lineEdit, [&lineEdit]() {
|
||||
lineEdit->clear();
|
||||
connect(&clearAction, &QAction::triggered, lineEdit, [this, &lineEdit]() {
|
||||
removeOne(lineEdit->text());
|
||||
});
|
||||
menu.addAction(&clearAction);
|
||||
menu.exec(lineEdit->mapToGlobal(pos));
|
||||
|
|
Loading…
Reference in a new issue