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. |