fix(biometric-plugin): The name of the window for changing the password, entering the fingerprint, or renaming the fingerprint is incorrect on the multitasking view page

Description: The name of the window for changing the password, entering the fingerprint, or renaming the fingerprint is incorrect on the multitasking view page

Log: 修改密码、录入指纹、重命名指纹窗口在多任务视图页面的窗口名错误
Bug: bug#I73JHD
This commit is contained in:
liudun 2023-08-24 17:45:00 +08:00
parent 4869d4dc63
commit 7f20d10ecd
1 changed files with 3 additions and 3 deletions

View File

@ -262,7 +262,7 @@ QString BiometricsWidget::_accountTypeIntToString(int type){
void BiometricsWidget::showChangePwdDialog() void BiometricsWidget::showChangePwdDialog()
{ {
ChangeUserPwd dialog(m_user.username); ChangeUserPwd dialog(m_user.username,this);
dialog.exec(); dialog.exec();
} }
@ -644,7 +644,7 @@ void BiometricsWidget::showEnrollDialog()
} }
} }
isShowEnrollDialog = true; isShowEnrollDialog = true;
BiometricEnrollDialog * dialog = new BiometricEnrollDialog(serviceInterface,deviceInfo->deviceType,deviceInfo->id,getuid()); BiometricEnrollDialog * dialog = new BiometricEnrollDialog(serviceInterface,deviceInfo->deviceType,deviceInfo->id,getuid(),this);
dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->setAttribute(Qt::WA_DeleteOnClose);
//gdxfp显示指纹图片 //gdxfp显示指纹图片
if(deviceInfo->shortName == "gdxfp") if(deviceInfo->shortName == "gdxfp")
@ -783,7 +783,7 @@ void BiometricsWidget::addFeature(FeatureInfoPtr &featureinfo)
return ; return ;
QStringList names = m_biometricProxy->getAllFeaturelist(getuid()); QStringList names = m_biometricProxy->getAllFeaturelist(getuid());
//QStringList names = m_biometricProxy->getFeaturelist(deviceInfoPtr->id,getuid()); //QStringList names = m_biometricProxy->getFeaturelist(deviceInfoPtr->id,getuid());
ChangeFeatureName * dialog = new ChangeFeatureName(names); ChangeFeatureName * dialog = new ChangeFeatureName(names,this);
dialog->setTitle(ui->biometrictypeBox->currentText()); dialog->setTitle(ui->biometrictypeBox->currentText());
connect(dialog, &ChangeFeatureName::sendNewName, [&,this,featureinfo](QString rename){ connect(dialog, &ChangeFeatureName::sendNewName, [&,this,featureinfo](QString rename){