diff --git a/src/modules/upower/upower.cpp b/src/modules/upower/upower.cpp index a26dc9e..153f2b6 100644 --- a/src/modules/upower/upower.cpp +++ b/src/modules/upower/upower.cpp @@ -110,7 +110,7 @@ void UPower::addDevice(UpDevice* device) { if (device) { const gchar* objectPath = up_device_get_object_path(device); devices[objectPath] = device; - g_signal_connect(devices[objectPath], "notify", G_CALLBACK(deviceNotify_cb), this); + g_signal_connect(device, "notify", G_CALLBACK(deviceNotify_cb), this); } }