diff --git a/src/NotepadNext/dialogs/MainWindow.cpp b/src/NotepadNext/dialogs/MainWindow.cpp index 38c4e7924..8f5d0ed24 100644 --- a/src/NotepadNext/dialogs/MainWindow.cpp +++ b/src/NotepadNext/dialogs/MainWindow.cpp @@ -1986,25 +1986,25 @@ void MainWindow::tabBarRightClicked(ScintillaNext *editor) // Default actions QStringList actionNames{ - "actionClose", - "actionCloseAllExceptActive", - "actionCloseAllToLeft", - "actionCloseAllToRight", + "Close", + "CloseAllExceptActive", + "CloseAllToLeft", + "CloseAllToRight", "", - "actionSave", - "actionSaveAs", - "actionRename", + "Save", + "SaveAs", + "Rename", "", - "actionReload", + "Reload", "", #ifdef Q_OS_WIN - "actionShowInExplorer", - "actionOpenCommandPromptHere", + "ShowInExplorer", + "OpenCommandPromptHere", "", #endif - "actionCopyFullPath", - "actionCopyFileName", - "actionCopyFileDirectory" + "CopyFullPath", + "CopyFileName", + "CopyFileDirectory" }; // If the entry exists in the settings, use that @@ -2019,7 +2019,7 @@ void MainWindow::tabBarRightClicked(ScintillaNext *editor) menu->addSeparator(); } else { - QAction *a = findChild(actionName, Qt::FindDirectChildrenOnly); + QAction *a = findChild(QStringLiteral("action") + actionName, Qt::FindDirectChildrenOnly); if (a != Q_NULLPTR) { menu->addAction(a);