Ticket #3619: 0002-Fix-for-displaying-Untitled-when-the-page-has-no-tit.patch

File 0002-Fix-for-displaying-Untitled-when-the-page-has-no-tit.patch, 1.1 KB (added by manuq, 9 years ago)

Patch that fixes the bug

  • webtoolbar.py

    From 28a11697aaf7ad34c28ef7437ddf31fdeabdaf0c Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Mon, 21 May 2012 12:50:00 -0300
    Subject: [PATCH 2/2] Fix for displaying "Untitled" when the page has no title
     #3619
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    This bug was introduced in commit 04a0de3de3b24ae22bf326de046fb256bdbfeccb .
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     webtoolbar.py |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/webtoolbar.py b/webtoolbar.py
    index e7c66c9..6241eb1 100644
    a b class PrimaryToolbar(ToolbarBase): 
    358358            self.entry._set_title(_('Loading...'))
    359359        elif status == WebKit.LoadStatus.FINISHED:
    360360            if widget.props.title == None:
    361                 self.entry._set_title(_('Loading...'))
     361                self.entry._set_title(_('Untitled'))
    362362        self._set_status(widget.get_load_status())
    363363
    364364    def __progress_changed_cb(self, widget, param):