Commit 9e11b4d6 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix possible crash on opening shortcuts dialog

parent 0ff5f95e
Pipeline #206760 passed with stage
in 9 minutes and 8 seconds
......@@ -2334,7 +2334,9 @@ void MainWindow::slotEditKeys()
foreach (QPushButton *button, dialog.findChildren<QPushButton *>()) {
if (button->text() == i18n("More Actions")) {
QMenu *moreActionsMenu = button->menu();
moreActionsMenu->addAction(i18n("Download New Keyboard Schemes…"), this, [this, schemesList] { slotGetNewKeyboardStuff(schemesList); });
if (moreActionsMenu) {
moreActionsMenu->addAction(i18n("Download New Keyboard Schemes…"), this, [this, schemesList] { slotGetNewKeyboardStuff(schemesList); });
}
break;
}
}
......
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