X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientsyncer.cpp;h=e7f68b01ceaa99c494866fe13c44e50ca9d3e36c;hp=b7b2088d43e4c3684fba1185d0759458bcb5c73f;hb=018d1d001bf3c051b55525f523d933a8d694e071;hpb=fd1833906d6d9d3a67c9aa92bffa35d1024e41a9;ds=sidebyside diff --git a/src/client/clientsyncer.cpp b/src/client/clientsyncer.cpp index b7b2088d..e7f68b01 100644 --- a/src/client/clientsyncer.cpp +++ b/src/client/clientsyncer.cpp @@ -160,6 +160,12 @@ void ClientSyncer::coreSocketConnected() { clientInit["ClientDate"] = Global::quasselDate; clientInit["ClientBuild"] = Global::quasselBuild; // this is a minimum, since we probably won't update for every commit clientInit["UseSsl"] = coreConnectionInfo["useSsl"]; +#ifndef QT_NO_COMPRESS + clientInit["UseCompression"] = true; +#else + clientInit["UseCompression"] = false; +#endif + SignalProxy::writeDataToDevice(socket, clientInit); } @@ -206,6 +212,12 @@ void ClientSyncer::clientInitAck(const QVariantMap &msg) { } #endif +#ifndef QT_NO_COMPRESS + if(msg["SupportsCompression"].toBool()) { + socket->setProperty("UseCompression", true); + } +#endif + if(!msg["Configured"].toBool()) { // start wizard emit startCoreSetup(msg["StorageBackends"].toList());