Helpviewer/HelpWindow.py

changeset 498
f3e76121fd10
parent 492
01f3384d535a
child 535
4b00d7336e19
equal deleted inserted replaced
496:ed1e3f654d0b 498:f3e76121fd10
1505 Private slot called when the displayed text of the combobox is changed. 1505 Private slot called when the displayed text of the combobox is changed.
1506 1506
1507 @param url URL of the new site (QUrl) 1507 @param url URL of the new site (QUrl)
1508 """ 1508 """
1509 selectedURL = url.toString() 1509 selectedURL = url.toString()
1510 if selectedURL and self.pathCombo: 1510 if selectedURL != "" and self.pathCombo is not None:
1511 i = self.pathCombo.findText(selectedURL) 1511 i = self.pathCombo.findText(selectedURL)
1512 if i == -1: 1512 if i == -1:
1513 if not QWebSettings.globalSettings()\ 1513 if not QWebSettings.globalSettings()\
1514 .testAttribute(QWebSettings.PrivateBrowsingEnabled): 1514 .testAttribute(QWebSettings.PrivateBrowsingEnabled):
1515 self.pathCombo.insertItem(0, selectedURL) 1515 self.pathCombo.insertItem(0, selectedURL)

eric ide

mercurial