Helpviewer/HelpWindow.py

changeset 319
09f456ec6fcf
parent 314
c1379cab7697
child 350
db40effc5c65
equal deleted inserted replaced
317:f6b0163a21be 319:09f456ec6fcf
1443 path = Utilities.fromNativeSeparators(path) 1443 path = Utilities.fromNativeSeparators(path)
1444 url = manager.convertKeywordSearchToUrl(path) 1444 url = manager.convertKeywordSearchToUrl(path)
1445 if url.isValid(): 1445 if url.isValid():
1446 return url 1446 return url
1447 1447
1448 return QUrl(path) 1448 try:
1449 return QUrl.fromUserInput(path)
1450 except AttributeError:
1451 return QUrl(path)
1449 1452
1450 def __setPathComboBackground(self): 1453 def __setPathComboBackground(self):
1451 """ 1454 """
1452 Private slot to change the path combo background to indicate save URLs. 1455 Private slot to change the path combo background to indicate save URLs.
1453 """ 1456 """

eric ide

mercurial