Commit eabe96e3 authored by Alexander Stippich's avatar Alexander Stippich

Re-add mouse backwards navigation

Summary:
Allow to go back in the content view with mouse.
Also fixes a bug where you could go back to
an empty initial item via keyboard shortcut

Reviewers: mgallien

Reviewed By: mgallien

Differential Revision: https://phabricator.kde.org/D20731
parent 761e3af6
......@@ -167,7 +167,8 @@ RowLayout {
}
onPopOneView: {
browseStackView.pop()
if (browseStackView.depth > 2) {
browseStackView.pop() }
}
}
......@@ -252,6 +253,12 @@ RowLayout {
visible: Layout.minimumWidth != 0
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.BackButton
onClicked: goBack()
}
Rectangle {
border {
color: (mainContentView.activeFocus ? myPalette.highlight : myPalette.base)
......
Markdown is supported
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