Commit f4a400ba authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Remove superfluous setData call

It's done by urlNavigatorHistoryAction already
parent 3656da18
Pipeline #240194 passed with stage
in 7 minutes and 35 seconds
......@@ -810,7 +810,6 @@ void DolphinMainWindow::slotAboutToShowBackPopupMenu()
m_backAction->menu()->clear();
for (int i = urlNavigator->historyIndex() + 1; i < urlNavigator->historySize() && entries < MaxNumberOfNavigationentries; ++i, ++entries) {
QAction *action = urlNavigatorHistoryAction(urlNavigator, i, m_backAction->menu());
action->setData(i);
m_backAction->menu()->addAction(action);
}
}
......@@ -839,7 +838,6 @@ void DolphinMainWindow::slotAboutToShowForwardPopupMenu()
m_forwardAction->menu()->clear();
for (int i = urlNavigator->historyIndex() - 1; i >= 0 && entries < MaxNumberOfNavigationentries; --i, ++entries) {
QAction *action = urlNavigatorHistoryAction(urlNavigator, i, m_forwardAction->menu());
action->setData(i);
m_forwardAction->menu()->addAction(action);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment