diff options
| author | Kai Uwe Broulik <[email protected]> | 2025-01-28 19:29:40 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2025-01-28 19:30:09 +0100 |
| commit | 0aadb8cf849fcab8ee8e8108a19e1ff4830054b1 (patch) | |
| tree | 4b9706efb1a03346b73ffcd7c6dd9fee312958b2 /src/dolphinmainwindow.cpp | |
| parent | 6e8f8c9dd476129f202f1b16ff10c60d817f782c (diff) | |
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.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
