BrowserMenu (screen) - GSOD when entering cookies menu

  • Hi folks! :smiling_face:


    Someone else that get gsod when entering cookies in menu section? Something about timestamp out of range...



    I think this was no problem for just a few days ago, but suddenly we (developers of pp image) are several people getting this error.

    - FoxyRabbit - Peter Pan team -

    Einmal editiert, zuletzt von FoxyRabbit ()

  • It happens when cookies list is empty. This code fixes the problem, but not sure if its done right.


    Old code
    BrowserMenu.py


    Python
    def __ckBuildList(self):		
    		print "[BrowserMenu].__ckBuildList"
    		cookies = []
    		for c in self.__ckList:
    			cookies.append(self.__ckGetEntryComponent(c))
    			self.detailList.setList(cookies)


    code that works (no gsod when emtpty cookie list)


    Python
    def __ckBuildList(self):
    		if self.detailList.index >= 0 and self.detailList.getCurrent() != None:
    			print "[BrowserMenu].__ckBuildList"
    			cookies = []
    			for c in self.__ckList:
    				cookies.append(self.__ckGetEntryComponent(c))
    			        self.detailList.setList(cookies)

    - FoxyRabbit - Peter Pan team -