Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
f4a400ba
Commit
f4a400ba
authored
Oct 02, 2022
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/dolphinmainwindow.cpp
View file @
f4a400ba
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment