From 5876c50a32bcea85eb07f2bdfcf3c11de8e60f7f Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 15 May 2024 14:56:41 +0200 Subject: [PATCH] Make sure that SEND-LAST-VERSION is executed exactly once. --- UpdatePTUDevCtrl/worker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UpdatePTUDevCtrl/worker.cpp b/UpdatePTUDevCtrl/worker.cpp index ecd1b80..5c3e3ab 100644 --- a/UpdatePTUDevCtrl/worker.cpp +++ b/UpdatePTUDevCtrl/worker.cpp @@ -32,6 +32,8 @@ QString const Worker::UPDATE_STEP_WRONG ( "[WRONG]"); QString const Worker::UPDATE_STEP_FAIL ( " [FAIL]"); QString const Worker::UPDATE_STEP_SUCCESS(" [SUCCESS]"); +bool Worker::sendLastVersionOnce = false; + using UPDATE_STEP = Worker::UPDATE_STEP; const QMap Worker::smap ( std::initializer_list>{