[gcompris/gcomprixogoo] No more have a python error if there is nothing to do in login.py.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] No more have a python error if there is nothing to do in login.py.
- Date: Sat, 13 Feb 2010 23:36:21 +0000 (UTC)
commit 828726b3517bac0ae7dd87200b28f457363bad7b
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Sun Feb 14 00:32:23 2010 +0100
No more have a python error if there is nothing to do in login.py.
src/login-activity/login.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/login-activity/login.py b/src/login-activity/login.py
index 8070a75..6c0585b 100644
--- a/src/login-activity/login.py
+++ b/src/login-activity/login.py
@@ -64,6 +64,9 @@ class Gcompris_login:
# Get the default profile
self.Prop = gcompris.get_properties()
+ if not self.Prop:
+ return
+
# init config to default values
self.config_dict = self.init_config()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]