Commit 2f09902b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove default shortcut. it will close main windows...

parent 0ddc7efe
......@@ -132,7 +132,9 @@ void GrammarResultTextEdit::contextMenuEvent(QContextMenuEvent *event)
QAction *checkAgainAct = popup->addAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Check Again"));
connect(checkAgainAct, &QAction::triggered, this, &GrammarResultTextEdit::checkAgain);
popup->addSeparator();
popup->addAction(KStandardAction::close(this, &GrammarResultTextEdit::closeChecker, this));
QAction *closeAct = KStandardAction::close(this, &GrammarResultTextEdit::closeChecker, this);
closeAct->setShortcut({});
popup->addAction(closeAct);
popup->exec(event->globalPos());
delete popup;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment