Bugfix for KDE build with Qt 5.11 from Debian 10 (#3)

Co-authored-by: Johannes Braun <jobraun@PC080>
This commit is contained in:
Johannes 2020-03-16 14:48:07 +01:00 committed by GitHub
parent 81d4f9836f
commit 0ccb1371ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,13 +51,13 @@ void GPClient::on_connectButton_clicked()
{ {
QString btnText = ui->connectButton->text(); QString btnText = ui->connectButton->text();
if (btnText == "Connect") { if (btnText.endsWith("Connect")) {
QString portal = ui->portalInput->text(); QString portal = ui->portalInput->text();
settings->setValue("portal", portal); settings->setValue("portal", portal);
ui->statusLabel->setText("Authenticating..."); ui->statusLabel->setText("Authenticating...");
updateConnectionStatus("pending"); updateConnectionStatus("pending");
doAuth(portal); doAuth(portal);
} else if (btnText == "Cancel") { } else if (btnText.endsWith("Cancel")) {
ui->statusLabel->setText("Canceling..."); ui->statusLabel->setText("Canceling...");
updateConnectionStatus("pending"); updateConnectionStatus("pending");