395 if engine is None or not engine.isValid(): |
395 if engine is None or not engine.isValid(): |
396 return False |
396 return False |
397 |
397 |
398 host = QUrl(engine.searchUrlTemplate()).host() |
398 host = QUrl(engine.searchUrlTemplate()).host() |
399 |
399 |
400 res = E5MessageBox.yesNo(None, |
400 res = E5MessageBox.yesNo( |
|
401 None, |
401 "", |
402 "", |
402 self.trUtf8( |
403 self.trUtf8( |
403 """<p>Do you want to add the following engine to your""" |
404 """<p>Do you want to add the following engine to your""" |
404 """ list of search engines?<br/><br/>Name: {0}<br/>""" |
405 """ list of search engines?<br/><br/>Name: {0}<br/>""" |
405 """Searches on: {1}</p>""").format(engine.name(), host)) |
406 """Searches on: {1}</p>""").format(engine.name(), host)) |