summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2021-10-21 20:29:30 +0200
committerLubomir Rintel <lkundrak@v3.sk>2021-10-25 09:28:20 +0200
commit53cab5249481f73581296295285a8e3ffe2a6ff2 (patch)
tree5ffa90b3fd7e0afa806f2c91d85c290a57018c93
parent1895d0290d51074227e4f31635e4dfec69a560d6 (diff)
downloadnetwork-manager-applet-53cab5249481f73581296295285a8e3ffe2a6ff2.tar.gz
applet: don't warn on unknown device classes
This makes get_device_class_from_connection() callers' a chance to deal with unknown classes themselves instead of the inconvenience of guessing whether the device class is known in advance.
-rw-r--r--src/applet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/applet.c b/src/applet.c
index 0d5e7493..ab787b9c 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -171,8 +171,7 @@ get_device_class_from_connection (NMConnection *connection, NMApplet *applet)
else if (!strcmp (ctype, NM_SETTING_BLUETOOTH_SETTING_NAME))
return applet->bt_class;
else
- g_warning ("%s: unhandled connection type '%s'", __func__, ctype);
- return NULL;
+ return NULL;
}
static NMActiveConnection *