add missing %1 for arg() method

This commit is contained in:
Axel Kohlmeyer
2023-09-02 18:36:05 -04:00
parent 2d17894430
commit 2b90e1143a

View File

@ -503,7 +503,7 @@ void CodeEditor::contextMenuEvent(QContextMenuEvent *event)
// print augmented context menu if an entry was found // print augmented context menu if an entry was found
auto *menu = createStandardContextMenu(); auto *menu = createStandardContextMenu();
menu->addSeparator(); menu->addSeparator();
auto action = menu->addAction(QString("Display available completions").arg(help)); auto action = menu->addAction(QString("Display available completions for '%1'").arg(help));
action->setIcon(QIcon(":/expand-text.png")); action->setIcon(QIcon(":/expand-text.png"));
connect(action, &QAction::triggered, this, &CodeEditor::runCompletion); connect(action, &QAction::triggered, this, &CodeEditor::runCompletion);