Ticket #3114: 0002-Fix-call-to-load_remote.patch

File 0002-Fix-call-to-load_remote.patch, 954 bytes (added by godiard, 9 years ago)
  • game.py

    From 672fb275b69cde6fd6bef8051bdc808a3cb38ce6 Mon Sep 17 00:00:00 2001
    From: Gonzalo Odiard <godiard@gmail.com>
    Date: Thu, 22 Sep 2011 12:05:58 -0300
    Subject: [PATCH 2/2] Fix call to load_remote
    
    The call removed a needed parameter and then the model.data['mode']
    have a wrong value, and dbus chash the activity.
    
    Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
    ---
     game.py |    3 ++-
     1 files changed, 2 insertions(+), 1 deletions(-)
    
    diff --git a/game.py b/game.py
    index b023e85..5217f7c 100644
    a b class MemorizeGame(GObject): 
    322322            size = int(self.model.data['size'])
    323323        self.model.count = 0
    324324        self.model.def_grid(size)
    325         self.load_remote(self.model.grid, self.model.data, False)
     325        self.load_remote(self.model.grid, self.model.data,
     326                self.model.data['mode'],False)
    326327
    327328    def set_load_mode(self, msg):
    328329        self.emit('load_mode', msg)