Helpviewer/HelpWindow.py

branch
5_0_x
changeset 320
340a978859c6
parent 315
e44ee3cb994a
child 497
a529427b15ed
equal deleted inserted replaced
318:e513e6d31858 320:340a978859c6
1427 path = Utilities.fromNativeSeparators(path) 1427 path = Utilities.fromNativeSeparators(path)
1428 url = manager.convertKeywordSearchToUrl(path) 1428 url = manager.convertKeywordSearchToUrl(path)
1429 if url.isValid(): 1429 if url.isValid():
1430 return url 1430 return url
1431 1431
1432 return QUrl(path) 1432 try:
1433 return QUrl.fromUserInput(path)
1434 except AttributeError:
1435 return QUrl(path)
1433 1436
1434 def __setPathComboBackground(self): 1437 def __setPathComboBackground(self):
1435 """ 1438 """
1436 Private slot to change the path combo background to indicate save URLs. 1439 Private slot to change the path combo background to indicate save URLs.
1437 """ 1440 """

eric ide

mercurial