bitbake: hob: Hob should ask for ports only when Manual proxy is selected
[YOCTO #5307] (Bitbake rev: 09b3e4e1e3fac737ea4069457e8bbffe1a4fe09d) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
3ca820de91
commit
ce0a6f81ae
|
@ -211,18 +211,20 @@ class SimpleSettingsDialog (CrumbsDialog, SettingsUIHelper):
|
||||||
|
|
||||||
def response_cb(self, dialog, response_id):
|
def response_cb(self, dialog, response_id):
|
||||||
if response_id == gtk.RESPONSE_YES:
|
if response_id == gtk.RESPONSE_YES:
|
||||||
# Check that all proxy entries have a corresponding port
|
if self.proxy_checkbox.get_active():
|
||||||
for proxy, port in zip(self.all_proxy_addresses, self.all_proxy_ports):
|
# Check that all proxy entries have a corresponding port
|
||||||
if proxy.get_text() and not port.get_text():
|
for proxy, port in zip(self.all_proxy_addresses, self.all_proxy_ports):
|
||||||
lbl = "<b>Enter all port numbers</b>\n\n"
|
if proxy.get_text() and not port.get_text():
|
||||||
msg = "Proxy servers require a port number. Please make sure you have entered a port number for each proxy server."
|
lbl = "<b>Enter all port numbers</b>\n\n"
|
||||||
dialog = CrumbsMessageDialog(self, lbl, gtk.STOCK_DIALOG_WARNING, msg)
|
msg = "Proxy servers require a port number. Please make sure "
|
||||||
button = dialog.add_button("Close", gtk.RESPONSE_OK)
|
msg += "you have entered a port number for each proxy server."
|
||||||
HobButton.style_button(button)
|
dialog = CrumbsMessageDialog(self, lbl, gtk.STOCK_DIALOG_WARNING, msg)
|
||||||
response = dialog.run()
|
button = dialog.add_button("Close", gtk.RESPONSE_OK)
|
||||||
dialog.destroy()
|
HobButton.style_button(button)
|
||||||
self.emit_stop_by_name("response")
|
response = dialog.run()
|
||||||
return
|
dialog.destroy()
|
||||||
|
self.emit_stop_by_name("response")
|
||||||
|
return
|
||||||
|
|
||||||
self.configuration.dldir = self.dldir_text.get_text()
|
self.configuration.dldir = self.dldir_text.get_text()
|
||||||
self.configuration.sstatedir = self.sstatedir_text.get_text()
|
self.configuration.sstatedir = self.sstatedir_text.get_text()
|
||||||
|
|
Loading…
Reference in New Issue