diff --git a/linkdevicedialog.cpp b/linkdevicedialog.cpp index 80b5eba48290d12d0a19cad25d8cc92bf4bae0e6..746d73241f1e413e23296b441c52066c6a84cd61 100644 --- a/linkdevicedialog.cpp +++ b/linkdevicedialog.cpp @@ -92,7 +92,7 @@ LinkDeviceDialog::setExportPage(const std::string& accountId, lrc::api::account: switch (status) { case lrc::api::account::ExportOnRingStatus::WRONG_PASSWORD: - ui->infoLabel->setStyleSheet("color: red;"); + ui->infoLabel->setStyleSheet("color: black;"); ui->infoLabel->setText(tr("Incorrect password")); ui->yourPinLabel->hide(); ui->exportedPIN->hide(); @@ -104,12 +104,18 @@ LinkDeviceDialog::setExportPage(const std::string& accountId, lrc::api::account: break; case lrc::api::account::ExportOnRingStatus::NETWORK_ERROR: + disconnect(); + ui->infoLabel->setStyleSheet("color: black;"); + ui->infoLabel->setText(tr("Error connecting to the network.\nPlease try again later.")); + ui->yourPinLabel->hide(); + ui->exportedPIN->hide(); case lrc::api::account::ExportOnRingStatus::INVALID: disconnect(); - ui->infoLabel->setStyleSheet("color: red;"); - ui->infoLabel->setText(tr("Something went wrong.\nPlease try again later.")); + ui->infoLabel->setStyleSheet("color: black;"); + ui->infoLabel->setText(tr("Something went wrong.\n")); ui->yourPinLabel->hide(); ui->exportedPIN->hide(); + break; } ui->stackedWidget->setCurrentWidget(ui->exportedPage);