Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Müller <fmueller@owncloud.com>2021-04-22 15:31:24 +0300
committerHannah von Reth <vonreth@kde.org>2021-04-30 14:25:49 +0300
commit2c5b6ea1c0c12b71dbf7c247acf72f8ce08bda79 (patch)
tree5bce1c8f90d71763324b04fe33b541b7951777d4 /shell_integration
parent42cbcba3d1e883ec295cdec7a77eeb121228dd7d (diff)
Add separator in Dolphin submenu
Diffstat (limited to 'shell_integration')
-rw-r--r--shell_integration/dolphin/ownclouddolphinactionplugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell_integration/dolphin/ownclouddolphinactionplugin.cpp b/shell_integration/dolphin/ownclouddolphinactionplugin.cpp
index 29fe15545..6f9127274 100644
--- a/shell_integration/dolphin/ownclouddolphinactionplugin.cpp
+++ b/shell_integration/dolphin/ownclouddolphinactionplugin.cpp
@@ -80,6 +80,8 @@ public:
connect(action, &QAction::triggered, [helper, call, files] {
helper->sendCommand(QByteArray(call + ":" + files + "\n"));
});
+ } else if (cmd.startsWith("MENU_SEPARATOR:")) {
+ menu->addSeparator();
}
});
QTimer::singleShot(100, &loop, SLOT(quit())); // add a timeout to be sure we don't freeze dolphin