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

Co-authored-by: Johannes Braun <jobraun@PC080>
This commit is contained in:
JohannesandJohannes Braun authored and GitHub committed 2020-03-16 21:48:07 +08:00
1 parent 81d4f9836f
commit 0ccb1371ab
1 file changed
+2 -2
+2 -2
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");