From 37b3124cfb138a746f2c27aed9357a7ada70d3ac Mon Sep 17 00:00:00 2001
From: Tobias Triffterer <tobias@ep1.ruhr-uni-bochum.de>
Date: Wed, 5 May 2021 23:00:19 +0200
Subject: [PATCH] Relay Clearing Histogram to Server

As the server also keeps track of the events, clearing the histogram
should also be done there.
---
 src/clientgui.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/clientgui.cpp b/src/clientgui.cpp
index 9a3c3de..34c8382 100644
--- a/src/clientgui.cpp
+++ b/src/clientgui.cpp
@@ -259,6 +259,8 @@ void ClientGui::clearHistogram()
     _histo->ResetStats();
     _rootcanvas.getCanvas()->Modified();
     _rootcanvas.getCanvas()->Update();
+
+    sendSimpleActiontoServer(Protocol::Action::clearHistogram);
 }
 
 void ClientGui::showEvent(QShowEvent* event)
-- 
GitLab