[network-manager-applet/jk/editor-wol-bgo755039] fixup! editor: add Wake-on-LAN settings to the editor Ethernet page (bgo #755039)
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/jk/editor-wol-bgo755039] fixup! editor: add Wake-on-LAN settings to the editor Ethernet page (bgo #755039)
- Date: Tue, 15 Sep 2015 14:38:16 +0000 (UTC)
commit 7d3ec1058d7c6977dfbba9b6d3997704b62c461f
Author: Thomas Haller <thaller redhat com>
Date: Tue Sep 15 16:23:22 2015 +0200
fixup! editor: add Wake-on-LAN settings to the editor Ethernet page (bgo #755039)
src/connection-editor/page-ethernet.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/page-ethernet.c b/src/connection-editor/page-ethernet.c
index a3148a3..043a0b0 100644
--- a/src/connection-editor/page-ethernet.c
+++ b/src/connection-editor/page-ethernet.c
@@ -451,8 +451,10 @@ ce_page_validate_v (CEPage *page, NMConnection *connection, GError **error)
if (!ce_page_mac_entry_valid (priv->cloned_mac, ARPHRD_ETHER, _("cloned MAC"), error))
return FALSE;
- if (!ce_page_mac_entry_valid (priv->wol_passwd, ARPHRD_ETHER, _("Wake-on-LAN password"), error))
- return FALSE;
+ if (gtk_widget_get_sensitive (GTK_WIDGET (priv->wol_passwd))) {
+ if (!ce_page_mac_entry_valid (priv->wol_passwd, ARPHRD_ETHER, _("Wake-on-LAN password"),
error))
+ return FALSE;
+ }
ui_to_setting (self);
return nm_setting_verify (NM_SETTING (priv->setting), NULL, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]