Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFran Rogers <fran@dumetella.net>2010-11-16 05:50:13 (GMT)
committer Fran Rogers <fran@dumetella.net>2010-11-16 05:50:13 (GMT)
commitc46894bd139125947df820286fd0a4a6971ec785 (patch)
tree687944c67ba7c40d5ef09e4ec36f4de4bd8ed59f
parent10449eedf22611b31fb43b0507fc331d32407d97 (diff)
Fix problems with defaults when no save data exists
-rw-r--r--ircactivity.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ircactivity.py b/ircactivity.py
index 5831ecd..310485f 100644
--- a/ircactivity.py
+++ b/ircactivity.py
@@ -44,6 +44,8 @@ class IRCActivity(activity.Activity):
self.is_visible = False
self.client = purk.Client()
+ if handle.object_id is None:
+ self.default_config()
self.client.show()
widget = self.client.get_widget()
@@ -69,7 +71,6 @@ class IRCActivity(activity.Activity):
def read_file(self, file_path):
if self.metadata['mime_type'] != 'text/plain':
- self.default_config()
return
fd = open(file_path, 'r')