[Sugar-devel] [PATCH Browse] Catch None value for url and set empty string in the URL entry #3476

Manuel Quiñones manuq at laptop.org
Fri Apr 27 13:21:07 EDT 2012


El día 27 de abril de 2012 14:08, Simon Schampijer
<simon at schampijer.de> escribió:
> On 04/27/2012 03:19 PM, Manuel Quiñones wrote:
>>
>> Signed-off-by: Manuel Quiñones<manuq at laptop.org>
>> ---
>>  webtoolbar.py |    5 ++++-
>>  1 files changed, 4 insertions(+), 1 deletions(-)
>>
>> diff --git a/webtoolbar.py b/webtoolbar.py
>> index 654f720..b49cf5a 100644
>> --- a/webtoolbar.py
>> +++ b/webtoolbar.py
>> @@ -365,7 +365,10 @@ class PrimaryToolbar(ToolbarBase):
>>              self.entry.set_progress_fraction(progress)
>>
>>      def _set_address(self, uri):
>> -        self.entry.props.address = uri
>> +        if uri is None:
>> +            self.entry.props.address = ''
>> +        else:
>> +            self.entry.props.address = uri
>>
>>      def _set_title(self, title):
>>          self.entry.props.title = title
>
>
> Looks good, please push.

Pushed.

-- 
.. manuq ..


More information about the Sugar-devel mailing list