Ticket #3476: 0001-new-tabs-have-blank-uri.patch

File 0001-new-tabs-have-blank-uri.patch, 804 bytes (added by callkalpa, 12 years ago)
  • webtoolbar.py

    From 130066b2e766bf0ab31d4db5eb0ee984b7a6433f Mon Sep 17 00:00:00 2001
    From: Kalpa Welivitigoda <callkalpa@gmail.com>
    Date: Wed, 25 Apr 2012 21:01:29 +0530
    Subject: [PATCH] new tabs have blank uri
    
    ---
     webtoolbar.py |    5 ++++-
     1 files changed, 4 insertions(+), 1 deletions(-)
    
    diff --git a/webtoolbar.py b/webtoolbar.py
    index 654f720..d171fa4 100644
    a b class PrimaryToolbar(ToolbarBase): 
    365365            self.entry.set_progress_fraction(progress)
    366366
    367367    def _set_address(self, uri):
    368         self.entry.props.address = uri
     368        if uri is None:
     369            self.entry.props.address = ''
     370        else:
     371            self.entry.props.address = type(uri)
    369372
    370373    def _set_title(self, title):
    371374        self.entry.props.title = title