diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-04-27 13:16:41 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-04-27 17:20:01 (GMT) |
commit | 0aab5f8300aaa18666bab748f457ccf295f68f52 (patch) | |
tree | cbc319f9f23d8589804e096832ece1103369f021 /webtoolbar.py | |
parent | 022ef0dd9791af51d7b9de38e813096f2ca60948 (diff) |
Catch None value for url and set empty string in the URL entry #3476
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'webtoolbar.py')
-rw-r--r-- | 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 |