| 476 | } |
| 477 | |
| 478 | void MOOCSubmission::rcvErrorResponse(QNetworkReply::NetworkError e) |
| 479 | { |
| 480 | switch (e) { |
| 481 | case QNetworkReply::ProtocolInvalidOperationError: |
| 482 | case QNetworkReply::AuthenticationRequiredError: |
| 483 | // ProtocolInvalidOperationError expected when checking auth succeeds |
| 484 | // AuthenticationRequiredError expected when checking auth fails |
| 485 | break; |
| 486 | default: |
| 487 | // Unknown networking error |
| 488 | // TODO: can probably remove this check since it should be covered by the ProtocolInvalidOperationError |
| 489 | if (!reply->errorString().endsWith("Bad Request")) { |
| 490 | ui->textBrowser->insertPlainText("Error:\n" + reply->errorString() + "\n\n"); |
| 491 | } |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | void MOOCSubmission::on_storePassword_toggled(bool checked) |
| 496 | { |
nothing calls this directly
no outgoing calls
no test coverage detected