From 0aadb8cf849fcab8ee8e8108a19e1ff4830054b1 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 28 Jan 2025 19:29:40 +0100 Subject: Clear forward action popup menu before adding history actions Otherwise the menu keeps growing and growing. The back button had the clear call but here it was forgotten. --- src/dolphinmainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 50c7f2e0e..d9438ea09 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -981,6 +981,7 @@ void DolphinMainWindow::slotAboutToShowForwardPopupMenu() const KUrlNavigator *urlNavigator = m_activeViewContainer->urlNavigatorInternalWithHistory(); int entries = 0; QMenu *menu = m_forwardAction->popupMenu(); + menu->clear(); for (int i = urlNavigator->historyIndex() - 1; i >= 0 && entries < MaxNumberOfNavigationentries; --i, ++entries) { QAction *action = urlNavigatorHistoryAction(urlNavigator, i, menu); menu->addAction(action); -- cgit v1.3