diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-05-21 13:24:42 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-05-26 18:11:27 +0300 |
commit | f37bf34ed261337298291bfeb3493678f7a6326c (patch) | |
tree | 6961d816f6d6d45ef2c40ef3404adf243ffcbd39 /src/gui/accountstate.h | |
parent | d13a07cecb604018213e84926998d9499f5bd948 (diff) |
Ensure we only get one url update dialog.
Fixes: #8645
Diffstat (limited to 'src/gui/accountstate.h')
-rw-r--r-- | src/gui/accountstate.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/accountstate.h b/src/gui/accountstate.h index 82d678d89..86a69d79b 100644 --- a/src/gui/accountstate.h +++ b/src/gui/accountstate.h @@ -26,6 +26,7 @@ #include <memory> class QSettings; +class QMessageBox; namespace OCC { @@ -44,7 +45,6 @@ class AccountState : public QObject, public QSharedData Q_PROPERTY(AccountPtr account MEMBER _account) public: - static void updateUrlDialog(AccountPtr account, const QUrl &url, std::function<void()> callback = {}); enum State { /// Not even attempting to connect, most likely because the /// user explicitly signed out or cancelled a credential dialog. @@ -134,6 +134,7 @@ public: * was not so long ago. */ void tagLastSuccessfullETagRequest(const QDateTime &tp); + void updateUrlDialog(const QUrl &url); public slots: /// Triggers a ping to the server to update state and @@ -147,6 +148,7 @@ private: signals: void stateChanged(State state); void isConnectedChanged(); + void urlUpdated(); protected Q_SLOTS: void slotConnectionValidatorResult(ConnectionValidator::Status status, const QStringList &errors); @@ -163,6 +165,7 @@ private: bool _waitingForNewCredentials; QDateTime _timeOfLastETagCheck; QPointer<ConnectionValidator> _connectionValidator; + QPointer<QMessageBox> _updateUrlDialog; /** * Starts counting when the server starts being back up after 503 or |