summaryrefslogtreecommitdiff
path: root/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp
diff options
context:
space:
mode:
authorMichael Reifenberger <mr@FreeBSD.org>2018-03-24 19:11:59 +0000
committerMichael Reifenberger <mr@FreeBSD.org>2018-03-24 19:11:59 +0000
commitea0ce349e74f02c68ed29292275c8b75dd4e8334 (patch)
tree7f177afc8023ae2a505d47cdcfe9770ad688b87d /deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp
parentwww/mybb: Update to 1.8.15 (diff)
Add nextcloudclient as of 20180323.
It's repocopied from owncloudclient.
Diffstat (limited to 'deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp')
-rw-r--r--deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp b/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp
new file mode 100644
index 000000000000..09f5dc7f7598
--- /dev/null
+++ b/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp
@@ -0,0 +1,25 @@
+--- src/libsync/configfile.cpp.orig 2017-12-20 15:03:02 UTC
++++ src/libsync/configfile.cpp
+@@ -448,11 +448,22 @@ bool ConfigFile::skipUpdateCheck(const QString &connec
+ if (connection.isEmpty())
+ con = defaultConnection();
+
++#if 0
+ QVariant fallback = getValue(QLatin1String(skipUpdateCheckC), con, false);
++#else
++ QVariant fallback = getValue(QLatin1String(skipUpdateCheckC), con, true);
++#endif
+ fallback = getValue(QLatin1String(skipUpdateCheckC), QString(), fallback);
+
+ QVariant value = getPolicySetting(QLatin1String(skipUpdateCheckC), fallback);
++#if 0
+ return value.toBool();
++#else
++ if ( !value.toBool() )
++ qDebug() << "FreeBSD package disabled the UpdateCheck mechanism.";
++
++ return true;
++#endif
+ }
+
+ void ConfigFile::setSkipUpdateCheck(bool skip, const QString &connection)