Oops, repair the Add Game dialog

I should have taken the "XXX DANGER ZONE" seriously. ^^
Thanks to unit tests for the pointer, by the way !
I've started reading the "TDD with Python" book, I will probably start
writing  tests myself "soon".
This commit is contained in:
Xodetaetl 2015-08-05 18:35:50 +02:00
parent 9c179bbdb8
commit ed8f280343

View file

@ -195,8 +195,9 @@ class GameDialogCommon(object):
else:
self.runner_name = widget.get_model()[runner_index][1]
# XXX DANGER ZONE
game_slug = self.game.slug if self.game else None
self.lutris_config = LutrisConfig(runner_slug=self.runner_name,
game_slug=self.game.slug)
game_slug=game_slug)
self.rebuild_tabs()
self.notebook.set_current_page(current_page)