On Wed, Oct 28, 2015 at 06:55:11PM +0100, Michael Biebl wrote:
> Having a tested patch would certainly speed things up.
Attached.
diff -urN _network-manager-applet-0.9.10.0/src/applet-device-broadband.c network-manager-applet-0.9.10.0/src/appl
et-device-broadband.c
--- _network-manager-applet-0.9.10.0/src/applet-device-broadband.c 2014-07-04 02:33:31.000000000 +0200
+++ network-manager-applet-0.9.10.0/src/applet-device-broadband.c 2015-10-29 11:02:06.358075197 +0100
@@ -625,14 +625,13 @@
{
BroadbandDeviceInfo *info;
- if (!applet->mm1) {
+ info = g_object_get_data (G_OBJECT (device), "devinfo");
+
+ if (!applet->mm1 || !info) {
g_warning ("ModemManager is not available for modem at %s", nm_device_get_udi (device));
return NULL;
}
- info = g_object_get_data (G_OBJECT (device), "devinfo");
- g_assert (info);
-
return mobile_helper_get_icon (device,
state,
connection,