old-commit-hash: 54f1afe403
54f1afe403
@ -268,9 +268,11 @@ SetupWidget::SetupWidget(QWidget* parent) : QFrame(parent) {
void SetupWidget::parseError(const QString &response) {
show();
if (mainLayout->currentIndex() == 1) {
showQr = false;
mainLayout->setCurrentIndex(0);
}
void SetupWidget::showQrCode() {
showQr = true;