diff --git a/client/src/proxgui.cpp b/client/src/proxgui.cpp index 9d95a372d..d9b82abd2 100644 --- a/client/src/proxgui.cpp +++ b/client/src/proxgui.cpp @@ -130,6 +130,7 @@ extern "C" void InitGraphics(int argc, char **argv, char *script_cmds_file, char #if QT_VERSION >= 0x050100 qunsetenv("SESSION_MANAGER"); #endif + ClearGraph(false); main_loop_thread = new WorkerThread(script_cmds_file, script_cmd, stayInCommandLoop); gui = new ProxGuiQT(argc, argv, main_loop_thread); } diff --git a/client/src/proxguiqt.cpp b/client/src/proxguiqt.cpp index b20376e88..393bce74f 100644 --- a/client/src/proxguiqt.cpp +++ b/client/src/proxguiqt.cpp @@ -1122,13 +1122,6 @@ Plot::Plot(QWidget *parent) : QWidget(parent), g_GraphPixelsPerPoint(1) { setPalette(palette); setAutoFillBackground(true); - g_MarkerA.pos = 0; - g_MarkerB.pos = 0; - g_MarkerC.pos = 0; - g_MarkerD.pos = 0; - g_GraphStart = 0; - g_GraphStop = 0; - setWindowTitle(tr("Sliders")); master = parent; }