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 cleanurl.setPassword("") |
214 cleanurl.setPassword("") |
215 if cleanurl.host() is not None: |
215 if cleanurl.host(): |
216 cleanurl.setHost(cleanurl.host().lower()) |
216 cleanurl.setHost(cleanurl.host().lower()) |
217 itm = HistoryEntry(cleanurl.toString(), QDateTime.currentDateTime()) |
217 itm = HistoryEntry(cleanurl.toString(), QDateTime.currentDateTime()) |
218 self._addHistoryEntry(itm) |
218 self._addHistoryEntry(itm) |
219 |
219 |
220 def updateHistoryEntry(self, url, title): |
220 def updateHistoryEntry(self, url, title): |