Comment 9 for bug 287028

Revision history for this message
James Westby (james-w) wrote :

Hi,

The cancel button on the network settings does not work with this
patch:

---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)

/usr/share/sugar/shell/controlpanel/gui.pyc in __cancel_clicked_cb(self=<ControlPanel object at 0xa86eedc (SugarControlPanel at 0xa7f2ef0)>, widget=<SectionToolbar object at 0xa88416c (SectionToolbar at 0xaa66aa0)>)
    256
    257 def __cancel_clicked_cb(self, widget):
--> 258 self._section_view.undo()
    259 self._options[self._current_option]['alerts'] = []
    260 self._show_main_view()

/usr/share/sugar/shell/controlpanel/view/network.pyc in undo(self=<Network object at 0xab5d234 (SugarSectionView at 0xa8becc0)>)
    169
    170 def undo(self):
--> 171 self._button.disconnect(self._radio_change_handler)
    172 self._entry.disconnect(self._jabber_change_handler)
    173 self._model.undo()

AttributeError: 'Network' object has no attribute '_button'

Thanks,

James