Commit b96bdd38 authored by Andreas Traczyk's avatar Andreas Traczyk

wizard: turn of camera when leaving photobooth page

Change-Id: Ib8ad0d16776b02b2af76e08fa48bb01ee8d29855
parent 4d23e33e
......@@ -260,10 +260,8 @@ void
NewWizardWidget::on_nextButton_clicked()
{
const QWidget* curWidget = ui->stackedWidget->currentWidget();
if (curWidget != ui->createRingAccountPage) {
ui->setAvatarWidget->stopBooth();
disconnect(registeredNameFoundConnection_);
}
ui->setAvatarWidget->stopBooth();
disconnect(registeredNameFoundConnection_);
if (curWidget == ui->createRingAccountPage ||
curWidget == ui->linkRingAccountPage) {
processWizardInformations();
......@@ -274,12 +272,10 @@ void
NewWizardWidget::on_previousButton_clicked()
{
const QWidget* curWidget = ui->stackedWidget->currentWidget();
if (curWidget != ui->createRingAccountPage) {
ui->setAvatarWidget->stopBooth();
disconnect(registeredNameFoundConnection_);
lookupStatusLabel_->hide();
passwordStatusLabel_->hide();
}
ui->setAvatarWidget->stopBooth();
disconnect(registeredNameFoundConnection_);
lookupStatusLabel_->hide();
passwordStatusLabel_->hide();
if (curWidget == ui->createRingAccountPage ||
curWidget == ui->linkRingAccountPage) {
changePage(ui->welcomePage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment