[PATCH 8/8]: wpa_gui-qt4: focus on input fields that cause warning on network add

Kel Modderman kel
Wed Jan 23 04:41:49 PST 2008


When warning user about invalid WPA-PSK key or ID String input, set focus to
those input fields.

Signed-off-by: Kel Modderman <kel at otaku42.de>
---
--- a/wpa_supplicant/wpa_gui-qt4/networkconfig.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/networkconfig.cpp
@@ -138,6 +138,7 @@
 					     "WPA-PSK requires a passphrase "
 					     "of 8 to 63 characters\n"
 					     "or 64 hex digit PSK");
+			pskEdit->setFocus();
 			return;
 		}
 	}
@@ -152,6 +153,7 @@
 					     "without spaces, containing\n"
 					     "only characters in this range: "
 					     "[A-Za-z0-9_-]\n");
+			idstrEdit->setFocus();
 			return;
 		}
 	}
---



More information about the Hostap mailing list