From ab833207fc8ac7c8bf767b3b4c7e7dbc56aa39c5 Mon Sep 17 00:00:00 2001
From: Tobias Triffterer <tobias@ep1.ruhr-uni-bochum.de>
Date: Wed, 5 May 2021 23:43:02 +0200
Subject: [PATCH] Fix Double-Sending Command

The command for clearing the histogram was sent twice, one time ignoring
if the action originated on the server creating an endlees loop...
---
 src/clientgui.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/clientgui.cpp b/src/clientgui.cpp
index 058bc98..86fae1f 100644
--- a/src/clientgui.cpp
+++ b/src/clientgui.cpp
@@ -256,7 +256,6 @@ void ClientGui::fillEventsIntoHistogram(const QString& adcchannels)
 
 void Fp311Online::ClientGui::clearHistogram(const bool fromServer)
 {
-    sendSimpleActiontoServer(Protocol::Action::clearHistogram);
     for (int i = 0; i < ExperimentState::NumberOfAdcChannels - 1; i++)
         _histo->SetBinContent(i, 0);
     _histo->ResetStats();
-- 
GitLab