206 |
206 |
207 @param url URL to be added (string) |
207 @param url URL to be added (string) |
208 """ |
208 """ |
209 cleanurl = QUrl(url) |
209 cleanurl = QUrl(url) |
210 cleanurl.setPassword("") |
210 cleanurl.setPassword("") |
211 if cleanurl.host() is not None: |
211 if cleanurl.host(): |
212 cleanurl.setHost(cleanurl.host().lower()) |
212 cleanurl.setHost(cleanurl.host().lower()) |
213 itm = HistoryEntry(cleanurl.toString(), QDateTime.currentDateTime()) |
213 itm = HistoryEntry(cleanurl.toString(), QDateTime.currentDateTime()) |
214 self._addHistoryEntry(itm) |
214 self._addHistoryEntry(itm) |
215 |
215 |
216 def updateHistoryEntry(self, url, title): |
216 def updateHistoryEntry(self, url, title): |