From 43c1e0579512dab80bd8ce986e258fcaa870aae4 Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Mon, 7 Dec 2020 13:50:53 +0100 Subject: [PATCH] Disable telemetry if user specified custom repository with --repo --- imagewriter.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/imagewriter.cpp b/imagewriter.cpp index 52f669f..6ac32ed 100644 --- a/imagewriter.cpp +++ b/imagewriter.cpp @@ -194,9 +194,12 @@ void ImageWriter::startWrite() else if (compressed) { _thread = new DownloadExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this); - DownloadStatsTelemetry *tele = new DownloadStatsTelemetry(urlstr, _parentCategory.toLatin1(), _osName.toLatin1(), this); - connect(tele, SIGNAL(finished()), tele, SLOT(deleteLater())); - tele->start(); + if (_repo.toString() == OSLIST_URL) + { + DownloadStatsTelemetry *tele = new DownloadStatsTelemetry(urlstr, _parentCategory.toLatin1(), _osName.toLatin1(), this); + connect(tele, SIGNAL(finished()), tele, SLOT(deleteLater())); + tele->start(); + } } else {