From 3c1e77d78964d79deafee79b65da1f11cdb98890 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 11 Apr 2013 19:21:46 +0200 Subject: [PATCH] sim: fix signal emission Signal should be emitted by the SIM object, not by the Modem object. --- src/mm-sim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mm-sim.c b/src/mm-sim.c index 436c15d8..3e1ca46c 100644 --- a/src/mm-sim.c +++ b/src/mm-sim.c @@ -330,20 +330,20 @@ handle_enable_pin_context_free (HandleEnablePinContext *ctx) } static void -after_enable_update_lock_info_ready (MMIfaceModem *self, +after_enable_update_lock_info_ready (MMIfaceModem *modem, GAsyncResult *res, HandleEnablePinContext *ctx) { /* We just want to ensure that we tried to update the unlock * retries, no big issue if it failed */ - mm_iface_modem_update_lock_info_finish (self, res, NULL); + mm_iface_modem_update_lock_info_finish (modem, res, NULL); if (ctx->save_error) { g_dbus_method_invocation_take_error (ctx->invocation, ctx->save_error); ctx->save_error = NULL; } else { /* Signal about the new lock state */ - g_signal_emit (self, signals[SIGNAL_PIN_LOCK_ENABLED], 0, ctx->enabled); + g_signal_emit (ctx->self, signals[SIGNAL_PIN_LOCK_ENABLED], 0, ctx->enabled); mm_gdbus_sim_complete_enable_pin (MM_GDBUS_SIM (ctx->self), ctx->invocation); }