Fix sidebar clicked()
This commit is contained in:
parent
02223a5d41
commit
bbd19e0410
1 changed files with 4 additions and 5 deletions
|
@ -97,8 +97,7 @@ ListView {
|
||||||
if (mouse.button === Qt.LeftButton) {
|
if (mouse.button === Qt.LeftButton) {
|
||||||
if (model.isDevice && model.setupNeeded)
|
if (model.isDevice && model.setupNeeded)
|
||||||
placesModel.requestSetup(index)
|
placesModel.requestSetup(index)
|
||||||
|
else
|
||||||
// sideBar.currentIndex = index
|
|
||||||
sideBar.clicked(model.path ? model.path : model.url)
|
sideBar.clicked(model.path ? model.path : model.url)
|
||||||
} else if (mouse.button === Qt.RightButton) {
|
} else if (mouse.button === Qt.RightButton) {
|
||||||
_menu.popup()
|
_menu.popup()
|
||||||
|
@ -115,7 +114,7 @@ ListView {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (model.isDevice && model.setupNeeded)
|
if (model.isDevice && model.setupNeeded)
|
||||||
placesModel.requestSetup(index)
|
placesModel.requestSetup(index)
|
||||||
|
else
|
||||||
sideBar.clicked(model.path ? model.path : model.url)
|
sideBar.clicked(model.path ? model.path : model.url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue