┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.cpp
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2025-06-09 12:16:36 +0000
committerMéven Car <[email protected]>2025-06-09 12:16:36 +0000
commit697d58e9727e229abb81956d27a05d1f02d8c775 (patch)
tree639c00be3e8f26f221379fe33accc44c49f9740a /src/dolphincontextmenu.cpp
parent2369b0c46ccab88e1cee310de22def6aaff41b00 (diff)
Add a SetFolderIcon ItemAction plugin
To allow to change folder icon from the context menu. CCBUG: 467221
Diffstat (limited to 'src/dolphincontextmenu.cpp')
-rw-r--r--src/dolphincontextmenu.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp
index 8372060aa..e1c67aad1 100644
--- a/src/dolphincontextmenu.cpp
+++ b/src/dolphincontextmenu.cpp
@@ -122,7 +122,7 @@ void DolphinContextMenu::addTrashContextMenu()
{
Q_ASSERT(m_context & TrashContext);
- QAction *emptyTrashAction = addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@action:inmenu", "Empty Trash"), [this]() {
+ QAction *emptyTrashAction = addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@action:inmenu", "Empty Trash"), this, [this]() {
Trash::empty(m_mainWindow);
});
emptyTrashAction->setEnabled(!Trash::isEmpty());
@@ -154,6 +154,7 @@ void DolphinContextMenu::addTrashItemContextMenu()
"Restore to Former Location",
"Restore to Former Locations",
m_selectedItems.count()),
+ this,
[this]() {
QList<QUrl> selectedUrls;
selectedUrls.reserve(m_selectedItems.count());
@@ -202,7 +203,7 @@ void DolphinContextMenu::addDirectoryItemContextMenu()
// set up 'Create New' menu
QAction *newDirAction = m_mainWindow->actionCollection()->action(QStringLiteral("create_dir"));
QAction *newFileAction = m_mainWindow->actionCollection()->action(QStringLiteral("create_file"));
- DolphinNewFileMenu *newFileMenu = new DolphinNewFileMenu(newDirAction, newFileAction, m_mainWindow);
+ DolphinNewFileMenu *newFileMenu = new DolphinNewFileMenu(newDirAction, newFileAction, this);
newFileMenu->checkUpToDate();
newFileMenu->setWorkingDirectory(m_fileInfo.url());
newFileMenu->setEnabled(selectedItemsProps.supportsWriting());