Skip to content

Commit

Permalink
Fix wrong condition whether to show "enter SSID" dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
  • Loading branch information
freemangordon committed May 25, 2021
1 parent ab5756b commit 181b42a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/settings/easy-wlan.c
Expand Up @@ -18,6 +18,7 @@
#include "easy-wlan.h"

#define _(msgid) dgettext("osso-connectivity-ui", msgid)
#define IS_EMPTY(str) (!(str) || !*(str))

struct easy_wlan
{
Expand Down Expand Up @@ -704,7 +705,7 @@ iap_run_easy_wlan_dialogs(osso_context_t *libosso, GtkWindow *parent,
iap_security = iap_security_from_wlan_security(*wlancond_capability);
memset(&ewlan, 0, sizeof(ewlan));

if (!network_id && !*network_id)
if (IS_EMPTY(network_id))
{
if (iap_hidden_ssid_dialog(parent, &hidden_ssid, wlancond_capability) ||
!*wlancond_capability)
Expand Down

0 comments on commit 181b42a

Please sign in to comment.