Datasets not showing in config window after implementing multiple dataset

Johnny Jazeix jazeix at gmail.com
Wed Jan 1 13:30:35 GMT 2020


Hi,

the issue is that Array.includes was only added in Qt 5.12
(https://doc-snapshots.qt.io/qt5-5.12/qtqml-javascript-functionlist.html).
I replaced it with indexOf which was already implemented before.

Johnny

Le mer. 1 janv. 2020 à 13:25, Sambhav Kaul <sambhav.kaul12 at gmail.com> a écrit :
>
> Hi,
>
> After implementing the multiple dataset for an activity, The datasets are not shown in the config window. As I created a branch from the multiple_dataset branch which was also updated in november and an extra object was added in line 156 of DialogChooseLevel.qml of core directory. So now it give error as
>
> qrc:/gcompris/src/core/DialogChooseLevel.qml:156: TypeError: Property 'includes' of object 1 is not a function
>
> So as the error is indicating 'includes' on line 156 is not working, Also I tried to update the version of Qt and still the issue was same so that is not the case. The line causing error in DialogChooseLevel is
>
> "selectedInConfig": chosenLevels.includes(currentFile.level)
>
>  So can anyone tell what could be the reason for this ?
>
> Thanks and regards


More information about the GCompris-devel mailing list