mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Remove superfluous setData call
It's done by urlNavigatorHistoryAction already
This commit is contained in:
parent
3656da18b0
commit
f4a400bad7
|
@ -810,7 +810,6 @@ void DolphinMainWindow::slotAboutToShowBackPopupMenu()
|
||||||
m_backAction->menu()->clear();
|
m_backAction->menu()->clear();
|
||||||
for (int i = urlNavigator->historyIndex() + 1; i < urlNavigator->historySize() && entries < MaxNumberOfNavigationentries; ++i, ++entries) {
|
for (int i = urlNavigator->historyIndex() + 1; i < urlNavigator->historySize() && entries < MaxNumberOfNavigationentries; ++i, ++entries) {
|
||||||
QAction *action = urlNavigatorHistoryAction(urlNavigator, i, m_backAction->menu());
|
QAction *action = urlNavigatorHistoryAction(urlNavigator, i, m_backAction->menu());
|
||||||
action->setData(i);
|
|
||||||
m_backAction->menu()->addAction(action);
|
m_backAction->menu()->addAction(action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -839,7 +838,6 @@ void DolphinMainWindow::slotAboutToShowForwardPopupMenu()
|
||||||
m_forwardAction->menu()->clear();
|
m_forwardAction->menu()->clear();
|
||||||
for (int i = urlNavigator->historyIndex() - 1; i >= 0 && entries < MaxNumberOfNavigationentries; --i, ++entries) {
|
for (int i = urlNavigator->historyIndex() - 1; i >= 0 && entries < MaxNumberOfNavigationentries; --i, ++entries) {
|
||||||
QAction *action = urlNavigatorHistoryAction(urlNavigator, i, m_forwardAction->menu());
|
QAction *action = urlNavigatorHistoryAction(urlNavigator, i, m_forwardAction->menu());
|
||||||
action->setData(i);
|
|
||||||
m_forwardAction->menu()->addAction(action);
|
m_forwardAction->menu()->addAction(action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue