[kupfer] gajim: cleanup contacts list when gajim not running.



commit e3326b75c51f0957e506028e4a729197b06fa541
Author: Karol BÄ?dkowski <karol bedkowsk+gh gmail com>
Date:   Sat Jan 9 21:20:33 2010 +0100

    gajim: cleanup contacts list when gajim not running.

 kupfer/plugin/gajim.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/gajim.py b/kupfer/plugin/gajim.py
index 7a7b4ff..d31bf5d 100644
--- a/kupfer/plugin/gajim.py
+++ b/kupfer/plugin/gajim.py
@@ -181,6 +181,8 @@ class ContactsSource(AppLeafContentMixin, ToplevelGroupingSource,
 		interface = _create_dbus_connection()
 		if interface is not None:
 			self._contacts = list(self._find_all_contacts(interface))
+		else:
+			self._contacts = []
 		return self._contacts
 
 	def _find_all_contacts(self, interface):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]