Fixed obtaining the current network from the network list

This commit is contained in:
Pierre Pronchery 2013-12-01 06:27:19 +01:00
parent a433ddc830
commit 011abb70f4

View File

@ -574,7 +574,7 @@ static gboolean _read_list_networks(WPA * wpa, char const * buf, size_t cnt)
if(wpa->networks[wpa->networks_cnt] != NULL)
wpa->networks_cnt++;
}
if(strcmp(flags, "[CURRENT]") == 0)
if(res > 3 && strcmp(flags, "[CURRENT]") == 0)
{
gtk_image_set_from_stock(GTK_IMAGE(wpa->image),
GTK_STOCK_CONNECT,