Can't disable "Receive Messages" option for an account

Bug #573734 reported by Siegfried Gevatter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gwibber
Fix Committed
Undecided
Unassigned

Bug Description

Patch for trunk:

=== modified file 'gwibber/accounts.py'
--- gwibber/accounts.py 2010-04-15 05:33:37 +0000
+++ gwibber/accounts.py 2010-05-02 15:04:47 +0000
@@ -338,7 +338,7 @@
                 widget = self.aw.ui.get_object(config)
                 value = [getattr(widget.props, p) for p in ["text", "active", "

- if value:
+ if value is not None:
                   if isinstance(value[0], gtk.gdk.Color):
                     self.account[config] = gtk.color_selection_palette_to_strin
                         gtk.color_selection_palette_from_string(value[0].to_str

Patch for lp:~segphault/gwibber/230-sqlite-backend/:

=== modified file 'gwibber/accounts.py'
--- gwibber/accounts.py 2010-04-13 00:50:19 +0000
+++ gwibber/accounts.py 2010-05-02 15:04:41 +0000
@@ -174,7 +174,7 @@

     for config in service["config"]:
       is_private = config.startswith("private:")
- config = config = config.replace("private:", "")
+ config = config.replace("private:", "")
       widget = self.account_widget.ui.get_object(config)
       value = None

@@ -182,7 +182,7 @@
         if widget and hasattr(widget.props, p):
           value = getattr(widget.props, p)

- if value:
+ if value is not None:
         if isinstance(value, gtk.gdk.Color):
           self.account[config] = gtk.color_selection_palette_to_string(
             gtk.color_selection_palette_from_string(value.to_string()))

Changed in gwibber:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.