Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-05-25 13:33:01 +0300
committerHannah von Reth <vonreth@kde.org>2022-05-25 14:22:41 +0300
commit0ae84fad0d718b084dc5bcefc2098ce4f4b8b7a3 (patch)
tree4815300246428a71cdf45e1ed83dec7b5638b300 /src/gui
parentaf83fa9388a254e24cca654432b9dc8e7cec2e18 (diff)
Allow to connect to unsupported servers
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/connectionvalidator.cpp2
-rw-r--r--src/gui/owncloudgui.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/connectionvalidator.cpp b/src/gui/connectionvalidator.cpp
index 6354cdbc4..23bcb2118 100644
--- a/src/gui/connectionvalidator.cpp
+++ b/src/gui/connectionvalidator.cpp
@@ -319,7 +319,7 @@ bool ConnectionValidator::setAndCheckServerInfo(const QString &version, const QS
// We cannot deal with servers < 10.0.0
if (_account->serverVersionUnsupported()) {
- _errors.append(tr("The configured server for this client is too old"));
+ _errors.append(tr("The configured server for this client is too old."));
_errors.append(tr("Please update to the latest server and restart the client."));
reportResult(ServerVersionMismatch);
return false;
diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp
index 18469257d..1a1f780e1 100644
--- a/src/gui/owncloudgui.cpp
+++ b/src/gui/owncloudgui.cpp
@@ -1019,7 +1019,7 @@ void ownCloudGui::runNewAccountWizard()
auto validator = new ConnectionValidator(accountStatePtr->account(), accountStatePtr->account().data());
QObject::connect(validator, &ConnectionValidator::connectionResult, accountStatePtr.data(), [accountStatePtr, syncMode](ConnectionValidator::Status status, const QStringList &errors) {
- if (OC_ENSURE(status == ConnectionValidator::Connected)) {
+ if (OC_ENSURE(status == ConnectionValidator::Connected || status == ConnectionValidator::ServerVersionMismatch)) {
// saving once after adding makes sure the account is stored in the config in a working state
// this is needed to ensure a consistent state in the config file upon unexpected terminations of the client
// (for instance, when running from a debugger and stopping the process from there)