Helpviewer/History/HistoryManager.py

changeset 2118
5fcae472551b
parent 2095
5bf2d8a73173
child 2302
f29e9405c851
equal deleted inserted replaced
2115:4f685709ad29 2118:5fcae472551b
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

eric ide

mercurial