Skip to content
Snippets Groups Projects
Commit b96bdd38 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

wizard: turn of camera when leaving photobooth page

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