From: Akseli Lahtinen Date: Wed, 26 Feb 2025 10:30:43 +0000 (+0200) Subject: Do not show the Zoom toggle context menu on small statusbar X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/fbfe467f8842169ca0410e0e3cee63e4c0861833 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. --- 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"));