[network-manager-applet/lr/symbolic-icons: 1/2] applet: don't warn on unknown device classes
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/lr/symbolic-icons: 1/2] applet: don't warn on unknown device classes
- Date: Mon, 25 Oct 2021 07:28:50 +0000 (UTC)
commit 53cab5249481f73581296295285a8e3ffe2a6ff2
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Thu Oct 21 20:29:30 2021 +0200
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.
src/applet.c | 3 +--
1 file changed, 1 insertion(+), 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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]