┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkseli Lahtinen <[email protected]>2025-02-26 12:30:43 +0200
committerAkseli Lahtinen <[email protected]>2025-02-26 13:43:30 +0200
commitfbfe467f8842169ca0410e0e3cee63e4c0861833 (patch)
tree29ed1eb0ab34ced74522a1cd5e604d51a8f66d1f /src
parenta01a8eb56b62f1ffc688eb897ca4e284e0583665 (diff)
Do not show the Zoom toggle context menu on small statusbar
Small statusbar should not have zoom slider enabled, but this could be bypassed by using the context menu. If we have small statusbar, just return early instead.
Diffstat (limited to 'src')
-rw-r--r--src/statusbar/dolphinstatusbar.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/statusbar/dolphinstatusbar.cpp b/src/statusbar/dolphinstatusbar.cpp
index d9ed1076e..e9773cb69 100644
--- a/src/statusbar/dolphinstatusbar.cpp
+++ b/src/statusbar/dolphinstatusbar.cpp
@@ -339,6 +339,11 @@ void DolphinStatusBar::contextMenuEvent(QContextMenuEvent *event)
{
Q_UNUSED(event)
+ // Do not show the context menu on small statusbar.
+ if (GeneralSettings::showStatusBar() == GeneralSettings::EnumShowStatusBar::Small) {
+ return;
+ }
+
QMenu menu(this);
QAction *showZoomSliderAction = menu.addAction(i18nc("@action:inmenu", "Show Zoom Slider"));