Skip to content

Commit

Permalink
Remove "action" prefix when specifying action names for tab bar
Browse files Browse the repository at this point in the history
  • Loading branch information
dail8859 committed Jun 12, 2024
1 parent f65e3ea commit d43e033
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/NotepadNext/dialogs/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -2019,7 +2019,7 @@ void MainWindow::tabBarRightClicked(ScintillaNext *editor)
menu->addSeparator();
}
else {
QAction *a = findChild<QAction *>(actionName, Qt::FindDirectChildrenOnly);
QAction *a = findChild<QAction *>(QStringLiteral("action") + actionName, Qt::FindDirectChildrenOnly);

if (a != Q_NULLPTR) {
menu->addAction(a);
Expand Down

0 comments on commit d43e033

Please sign in to comment.