Commit aff1cc03 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[nextcloud] Remove unused isLoginComplete property

parent 60367561
...@@ -180,10 +180,8 @@ void NextcloudController::authCheckResult(KJob *job) ...@@ -180,10 +180,8 @@ void NextcloudController::authCheckResult(KJob *job)
m_errorMessage = i18n("Unable to authenticate using the provided username and password"); m_errorMessage = i18n("Unable to authenticate using the provided username and password");
} else { } else {
m_errorMessage.clear(); m_errorMessage.clear();
m_isLoginComplete = true;
m_state = Services; m_state = Services;
Q_EMIT stateChanged(); Q_EMIT stateChanged();
Q_EMIT isLoginCompleteChanged();
} }
Q_EMIT errorMessageChanged(); Q_EMIT errorMessageChanged();
...@@ -201,11 +199,6 @@ QString NextcloudController::errorMessage() const ...@@ -201,11 +199,6 @@ QString NextcloudController::errorMessage() const
return m_errorMessage; return m_errorMessage;
} }
bool NextcloudController::isLoginComplete()
{
return m_isLoginComplete;
}
void NextcloudController::finish(bool contactsEnabled) void NextcloudController::finish(bool contactsEnabled)
{ {
QVariantMap data; QVariantMap data;
......
...@@ -29,7 +29,6 @@ class NextcloudController : public QObject ...@@ -29,7 +29,6 @@ class NextcloudController : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool isWorking READ isWorking NOTIFY isWorkingChanged) Q_PROPERTY(bool isWorking READ isWorking NOTIFY isWorkingChanged)
Q_PROPERTY(bool isLoginComplete READ isLoginComplete NOTIFY isLoginCompleteChanged)
Q_PROPERTY(QString errorMessage READ errorMessage NOTIFY errorMessageChanged) Q_PROPERTY(QString errorMessage READ errorMessage NOTIFY errorMessageChanged)
Q_PROPERTY(State state MEMBER m_state NOTIFY stateChanged) Q_PROPERTY(State state MEMBER m_state NOTIFY stateChanged)
Q_PROPERTY(QQuickWebEngineProfile *webengineProfile MEMBER m_webengineProfile CONSTANT) Q_PROPERTY(QQuickWebEngineProfile *webengineProfile MEMBER m_webengineProfile CONSTANT)
...@@ -56,7 +55,6 @@ public: ...@@ -56,7 +55,6 @@ public:
Q_SIGNALS: Q_SIGNALS:
void isWorkingChanged(); void isWorkingChanged();
void errorMessageChanged(); void errorMessageChanged();
void isLoginCompleteChanged();
void wizardFinished(const QString &username, const QString &password, const QVariantMap &data); void wizardFinished(const QString &username, const QString &password, const QVariantMap &data);
void stateChanged(); void stateChanged();
void loginUrlChanged(); void loginUrlChanged();
...@@ -82,7 +80,6 @@ private: ...@@ -82,7 +80,6 @@ private:
QUrl m_finalUrl; QUrl m_finalUrl;
QStringList m_disabledServices; QStringList m_disabledServices;
bool m_isWorking = false; bool m_isWorking = false;
bool m_isLoginComplete = false;
State m_state = ServerUrl; State m_state = ServerUrl;
QQuickWebEngineProfile *m_webengineProfile; QQuickWebEngineProfile *m_webengineProfile;
NextcloudUrlIntercepter m_urlIntercepter; NextcloudUrlIntercepter m_urlIntercepter;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment