Helpviewer/UrlBar/UrlBar.py

branch
5_2_x
changeset 1669
0df81d254c64
parent 1509
c0b5e693b0eb
child 2303
0ed4ed026c16
equal deleted inserted replaced
1668:215353ac1a0c 1669:0df81d254c64
120 """ 120 """
121 Private slot to handle a URL change of the associated browser. 121 Private slot to handle a URL change of the associated browser.
122 122
123 @param url new URL of the browser (QUrl) 123 @param url new URL of the browser (QUrl)
124 """ 124 """
125 self.setText(str(url.toEncoded(), encoding="utf-8")) 125 strUrl = url.toString()
126 if strUrl in ["pyrc:home", "about:blank"]:
127 strUrl = ""
128
129 if self.text() != strUrl:
130 self.setText(strUrl)
126 self.setCursorPosition(0) 131 self.setCursorPosition(0)
127 132
128 def __loadStarted(self): 133 def __loadStarted(self):
129 """ 134 """
130 Private slot to perform actions before the page is loaded. 135 Private slot to perform actions before the page is loaded.

eric ide

mercurial