Remove unneeded this
This commit is contained in:
@@ -257,7 +257,7 @@ void CoversSettingsPage::AuthenticationSuccess() {
|
||||
if (!provider) return;
|
||||
DisconnectAuthentication(provider);
|
||||
|
||||
if (!this->isVisible() || !ui_->providers->currentItem() || ui_->providers->currentItem()->text() != provider->name()) return;
|
||||
if (!isVisible() || !ui_->providers->currentItem() || ui_->providers->currentItem()->text() != provider->name()) return;
|
||||
|
||||
ui_->login_state->SetLoggedIn(LoginStateWidget::LoggedIn);
|
||||
ui_->button_authenticate->setEnabled(true);
|
||||
@@ -270,7 +270,7 @@ void CoversSettingsPage::AuthenticationFailure(const QStringList &errors) {
|
||||
if (!provider) return;
|
||||
DisconnectAuthentication(provider);
|
||||
|
||||
if (!this->isVisible() || !ui_->providers->currentItem() || ui_->providers->currentItem()->text() != provider->name()) return;
|
||||
if (!isVisible() || !ui_->providers->currentItem() || ui_->providers->currentItem()->text() != provider->name()) return;
|
||||
|
||||
QMessageBox::warning(this, tr("Authentication failed"), errors.join("\n"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user