diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2021-10-21 20:29:30 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2021-10-25 09:28:20 +0200 |
commit | 53cab5249481f73581296295285a8e3ffe2a6ff2 (patch) | |
tree | 5ffa90b3fd7e0afa806f2c91d85c290a57018c93 | |
parent | 1895d0290d51074227e4f31635e4dfec69a560d6 (diff) | |
download | network-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.c | 3 |
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 * |