Skip to content
Snippets Groups Projects
Verified Commit ab833207 authored by Tobias Triffterer's avatar Tobias Triffterer :house_with_garden:
Browse files

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...
parent 0a43f35e
No related branches found
No related tags found
No related merge requests found
Pipeline #3180 passed with stage
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment