From 482b52e85bcc2106b85f20de55b2c54e985bb18d Mon Sep 17 00:00:00 2001 From: Jaroslav Barton Date: Thu, 2 Apr 2009 09:55:25 +0200 Subject: [PATCH] Set enrollStages to zero before getting number of enroll stages. It is only sanity check if device is not claimed and in enrollStages may be some random number... --- src/FMEnroll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FMEnroll.cpp b/src/FMEnroll.cpp index 6cd34c0..27cb8b0 100644 --- a/src/FMEnroll.cpp +++ b/src/FMEnroll.cpp @@ -6,13 +6,13 @@ #include "FingerNames.h" void FMEnroll::getIface() { + enrollStages = 0; dbc->claimDevice(device_.device, login_); if (dbc->isDeviceClaimed()) { enrollStages = dbc->getEnrollStages(); scanType = dbc->getScanType(); QObject::connect(dbc, SIGNAL(EnrollStatus(QString,bool)), this, SLOT(enrollStatus(QString,bool))); - qDebug("Iface claimed."); } } -- 2.11.4.GIT