Baspar / harbour-picross

Picross game for SailfishOS
4 stars 11 forks source link

No levels shown in SF 2.1 #6

Closed erikderzweite closed 7 years ago

erikderzweite commented 7 years ago

If the game is started on a smartphone with Sailfish OS 2.1, no levels are shown. Tutorials etc all show 0/0.

console log:

[nemo@Sailfish ~]$ harbour-picross [D] unknown:0 - Using Wayland-EGL [W] unknown:38 - file:///usr/lib/qt5/qml/Sailfish/Silica/private/Util.js:38: TypeError: Cannot read property 'parent' of null [W] unknown:2445 - file:///usr/share/harbour-picross/qml/Levels.js:2445: TypeError: Cannot read property 'list' of undefined [W] unknown:38 - file:///usr/lib/qt5/qml/Sailfish/Silica/private/Util.js:38: TypeError: Cannot read property 'parent' of null [W] unknown:38 - file:///usr/lib/qt5/qml/Sailfish/Silica/private/Util.js:38: TypeError: Cannot read property 'parent' of null [W] unknown:38 - file:///usr/lib/qt5/qml/Sailfish/Silica/private/Util.js:38: TypeError: Cannot read property 'parent' of null [W] unknown:194 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194: TypeError: Cannot read property 'backIndicatorDown' of null [W] unknown:189 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189: TypeError: Cannot read property 'backIndicatorDown' of null [W] unknown:247 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247: TypeError: Cannot read property 'forwardIndicatorDown' of null [W] unknown:242 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242: TypeError: Cannot read property 'forwardIndicatorDown' of null

erikderzweite commented 7 years ago

The issue seem to be in NewGame.qml line 140: Levels.arrayToList(index, levelList) 'index' seems to be undefined. I'd propose replacing the line with Levels.arrayToList(model.index, levelList). Then the game works again. EDIT: Closing the issue as there is a pull request already.