diff src/browser/sat_browser/contact_list.py @ 633:617f7a5c5312 frontends_multi_profiles

browser side (contact list): use of c.bool for parameter conversion
author Goffi <goffi@goffi.org>
date Mon, 23 Feb 2015 18:43:15 +0100
parents 71abccd8d228
children 16a5da120b7f
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py	Mon Feb 23 18:43:08 2015 +0100
+++ b/src/browser/sat_browser/contact_list.py	Mon Feb 23 18:43:15 2015 +0100
@@ -579,14 +579,14 @@
 
         @return: boolean
         """
-        return self.host.getCachedParam('General', C.SHOW_OFFLINE_CONTACTS) == 'true'
+        return C.bool(self.host.getCachedParam('General', C.SHOW_OFFLINE_CONTACTS))
 
     def emtyGroupsToShow(self):
         """Tell if empty groups should be visible according to the user settings
 
         @return: boolean
         """
-        return self.host.getCachedParam('General', C.SHOW_EMPTY_GROUPS) == 'true'
+        return C.bool(self.host.getCachedParam('General', C.SHOW_EMPTY_GROUPS))
 
     def updatePresence(self, entity, show, priority, statuses):
         QuickContactList.updatePresence(self, entity, show, priority, statuses)