diff options
author | Fabian Müller <fmueller@owncloud.com> | 2022-07-06 13:55:28 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-07-07 16:54:36 +0300 |
commit | e068546ae5c204e3dade838ab7433ff3e07ea161 (patch) | |
tree | 22681637d04be9704051d3f286f9e22e86e22210 /src | |
parent | b779de22de0e0b48a328b146501f7e9e12d37f5b (diff) |
Remove unnecessary redundant method
Diffstat (limited to 'src')
3 files changed, 1 insertions, 8 deletions
diff --git a/src/gui/newwizard/pages/oauthcredentialssetupwizardpage.cpp b/src/gui/newwizard/pages/oauthcredentialssetupwizardpage.cpp index ebab2ceba..8dca5879f 100644 --- a/src/gui/newwizard/pages/oauthcredentialssetupwizardpage.cpp +++ b/src/gui/newwizard/pages/oauthcredentialssetupwizardpage.cpp @@ -46,12 +46,6 @@ OAuthCredentialsSetupWizardPage::OAuthCredentialsSetupWizardPage(const QUrl &ser _ui->pleaseLogIntoLabel->setText(tr("Please use your browser to log in to %1").arg(Theme::instance()->appNameGUI())); } -void OAuthCredentialsSetupWizardPage::disableButtons() -{ - _ui->openBrowserButton->setEnabled(false); - _ui->copyUrlToClipboardButton->setEnabled(false); -} - OAuthCredentialsSetupWizardPage::~OAuthCredentialsSetupWizardPage() { delete _ui; diff --git a/src/gui/newwizard/pages/oauthcredentialssetupwizardpage.h b/src/gui/newwizard/pages/oauthcredentialssetupwizardpage.h index 13d310b6a..7416f0e94 100644 --- a/src/gui/newwizard/pages/oauthcredentialssetupwizardpage.h +++ b/src/gui/newwizard/pages/oauthcredentialssetupwizardpage.h @@ -28,7 +28,6 @@ class OAuthCredentialsSetupWizardPage : public AbstractSetupWizardPage public: explicit OAuthCredentialsSetupWizardPage(const QUrl &serverUrl); - void disableButtons(); ~OAuthCredentialsSetupWizardPage() noexcept override; bool validateInput() override; diff --git a/src/gui/newwizard/states/oauthcredentialssetupwizardstate.cpp b/src/gui/newwizard/states/oauthcredentialssetupwizardstate.cpp index 9658c6172..39e221d2d 100644 --- a/src/gui/newwizard/states/oauthcredentialssetupwizardstate.cpp +++ b/src/gui/newwizard/states/oauthcredentialssetupwizardstate.cpp @@ -31,7 +31,7 @@ OAuthCredentialsSetupWizardState::OAuthCredentialsSetupWizardState(SetupWizardCo connect(oAuth, &OAuth::result, this, [this, oAuthCredentialsPage](OAuth::Result result, const QString &userName, const QString &token, const QString &refreshToken, const QString &displayName) { // the button may not be clicked anymore, since the server has been shut down right before this signal was emitted by the OAuth instance - oAuthCredentialsPage->disableButtons(); + oAuthCredentialsPage->setButtonsEnabled(false); _context->window()->slotStartTransition(); |