Navigation Menu

Skip to content

Commit

Permalink
[libmce-glib] Fixed MceTklock initialization bug. JB#36523
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Feb 11, 2017
1 parent 6744ca4 commit e7bb00e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mce_tklock.c
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 Jolla Ltd.
* Copyright (C) 2016-2017 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
*
* You may use this file under the terms of BSD license as follows:
Expand Down Expand Up @@ -178,7 +178,7 @@ mce_tklock_mode_query(
* for the valid signal before we can connect the tklock mode
* signal and submit the initial query.
*/
if (proxy->signal && priv->proxy->signal) {
if (proxy->signal && !priv->tklock_mode_ind_id) {
priv->tklock_mode_ind_id = g_signal_connect(proxy->signal,
MCE_TKLOCK_MODE_SIG, G_CALLBACK(mce_tklock_mode_ind), self);
}
Expand Down

0 comments on commit e7bb00e

Please sign in to comment.