From 973fb58a5d244ba07c08f6dd6ddfeef3f9d0109b Mon Sep 17 00:00:00 2001 From: Syping Date: Sat, 28 Jul 2018 05:00:57 +0200 Subject: [PATCH] don't spam telemetry --- ProfileInterface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ProfileInterface.cpp b/ProfileInterface.cpp index 8485457..90fa373 100644 --- a/ProfileInterface.cpp +++ b/ProfileInterface.cpp @@ -604,7 +604,7 @@ bool ProfileInterface::importFile(QString selectedFile, QDateTime importDateTime bool success = importSnapmaticPicture(picture, notMultiple); if (!success) delete picture; #ifdef GTA5SYNC_TELEMETRY - if (success) + if (success && notMultiple) { QSettings telemetrySettings(GTA5SYNC_APPVENDOR, GTA5SYNC_APPSTR); telemetrySettings.beginGroup("Telemetry"); @@ -640,7 +640,7 @@ bool ProfileInterface::importFile(QString selectedFile, QDateTime importDateTime bool success = importSavegameData(savegame, selectedFile, notMultiple); if (!success) delete savegame; #ifdef GTA5SYNC_TELEMETRY - if (success) + if (success && notMultiple) { QSettings telemetrySettings(GTA5SYNC_APPVENDOR, GTA5SYNC_APPSTR); telemetrySettings.beginGroup("Telemetry"); @@ -861,7 +861,7 @@ bool ProfileInterface::importFile(QString selectedFile, QDateTime importDateTime delete savegame; if (!success) delete picture; #ifdef GTA5SYNC_TELEMETRY - if (success) + if (success && notMultiple) { QSettings telemetrySettings(GTA5SYNC_APPVENDOR, GTA5SYNC_APPSTR); telemetrySettings.beginGroup("Telemetry"); @@ -888,7 +888,7 @@ bool ProfileInterface::importFile(QString selectedFile, QDateTime importDateTime delete picture; if (!success) delete savegame; #ifdef GTA5SYNC_TELEMETRY - if (success) + if (success && notMultiple) { QSettings telemetrySettings(GTA5SYNC_APPVENDOR, GTA5SYNC_APPSTR); telemetrySettings.beginGroup("Telemetry");