mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Avoid QtCreator warning about ==
Warning M126: == and != may perform type coercion, use === or !== to avoid it Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
47403588e5
commit
8eb019456d
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ MobileComponents.Page {
|
||||||
id: diveDelegate
|
id: diveDelegate
|
||||||
MobileComponents.ListItem {
|
MobileComponents.ListItem {
|
||||||
enabled: true
|
enabled: true
|
||||||
checked: diveListView.currentIndex == model.index
|
checked: diveListView.currentIndex === model.index
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
property real detailsOpacity : 0
|
property real detailsOpacity : 0
|
||||||
|
@ -145,7 +145,7 @@ MobileComponents.Page {
|
||||||
Connections {
|
Connections {
|
||||||
target: stackView
|
target: stackView
|
||||||
onDepthChanged: {
|
onDepthChanged: {
|
||||||
if (stackView.depth == 1) {
|
if (stackView.depth === 1) {
|
||||||
diveListView.currentIndex = -1;
|
diveListView.currentIndex = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue