210 |
210 |
211 @param url URL to be added (string) |
211 @param url URL to be added (string) |
212 """ |
212 """ |
213 cleanurl = QUrl(url) |
213 cleanurl = QUrl(url) |
214 if cleanurl.scheme() not in ["eric", "about"]: |
214 if cleanurl.scheme() not in ["eric", "about"]: |
215 cleanurl.setPassword("") |
215 if cleanurl.password(): |
|
216 # don't save the password in the history |
|
217 cleanurl.setPassword("") |
216 if cleanurl.host(): |
218 if cleanurl.host(): |
217 cleanurl.setHost(cleanurl.host().lower()) |
219 cleanurl.setHost(cleanurl.host().lower()) |
218 itm = HistoryEntry(cleanurl.toString(), QDateTime.currentDateTime()) |
220 itm = HistoryEntry(cleanurl.toString(), QDateTime.currentDateTime()) |
219 self._addHistoryEntry(itm) |
221 self._addHistoryEntry(itm) |
220 |
222 |