mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2025-02-16 07:30:09 +00:00
Fix mac address validation fail
This commit is contained in:
parent
52dc9c6745
commit
b5c939683b
@ -621,12 +621,12 @@ static gboolean validator(ConfigValues *cv){
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb_mac))==TRUE){
|
||||
if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb_mac))==TRUE) {
|
||||
|
||||
if(cv->mac==NULL)
|
||||
return FALSE;
|
||||
if (cv->mac == NULL || isValidMacAddress(cv->mac) != 1) {
|
||||
set_error_text(ERROR_MAC_MSG);
|
||||
gtk_style_context_add_class(context_entry_mac, "entry-error");
|
||||
|
||||
if(isValidMacAddress(cv->mac)==1){
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user