Helpviewer/HelpWindow.py

branch
5_0_x
changeset 497
a529427b15ed
parent 320
340a978859c6
child 792
a13346916170
equal deleted inserted replaced
494:24553e4f9886 497:a529427b15ed
1474 Private slot called when the displayed text of the combobox is changed. 1474 Private slot called when the displayed text of the combobox is changed.
1475 1475
1476 @param url URL of the new site (QUrl) 1476 @param url URL of the new site (QUrl)
1477 """ 1477 """
1478 selectedURL = url.toString() 1478 selectedURL = url.toString()
1479 if selectedURL and self.pathCombo: 1479 if selectedURL != "" and self.pathCombo is not None:
1480 i = self.pathCombo.findText(selectedURL) 1480 i = self.pathCombo.findText(selectedURL)
1481 if i == -1: 1481 if i == -1:
1482 if not QWebSettings.globalSettings()\ 1482 if not QWebSettings.globalSettings()\
1483 .testAttribute(QWebSettings.PrivateBrowsingEnabled): 1483 .testAttribute(QWebSettings.PrivateBrowsingEnabled):
1484 self.pathCombo.insertItem(0, selectedURL) 1484 self.pathCombo.insertItem(0, selectedURL)

eric ide

mercurial