Always emit VerifyFingerSelected

If the finger passed for verification is -1, always emit the
VerifyFingerSelected signal, as the front-end isn't to know
whether we're using identification or verification.
This commit is contained in:
Bastien Nocera
2008-10-31 11:53:05 +00:00
committed by Daniel Drake
parent 35ae4dd071
commit 09852db6ee

View File

@ -615,14 +615,15 @@ static void fprint_device_verify_start(FprintDevice *rdev,
return;
}
/* Emit VerifyFingerSelected telling the front-end which finger
* we selected for auth */
g_signal_emit(rdev, signals[SIGNAL_VERIFY_FINGER_SELECTED], 0, finger_num);
/* FIXME fp_async_verify_start should copy the fp_print_data */
r = fp_async_verify_start(priv->dev, data, verify_cb, rdev);
}
/* Emit VerifyFingerSelected telling the front-end which finger
* we selected for auth */
g_signal_emit(rdev, signals[SIGNAL_VERIFY_FINGER_SELECTED], 0, finger_num);
if (r < 0) {
if (data != NULL) {
fp_print_data_free (data);