From fbfe467f8842169ca0410e0e3cee63e4c0861833 Mon Sep 17 00:00:00 2001 From: Akseli Lahtinen Date: Wed, 26 Feb 2025 12:30:43 +0200 Subject: [PATCH] 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. --- src/statusbar/dolphinstatusbar.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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")); -- 2.47.3