From 87e58442fbcc8d457b46cac96d7e36a92adfdb5c Mon Sep 17 00:00:00 2001 From: mwalker33 Date: Sun, 12 Apr 2020 20:36:05 +1000 Subject: [PATCH] Update proxguiqt.cpp --- client/proxguiqt.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/proxguiqt.cpp b/client/proxguiqt.cpp index c65248719..2b39956cf 100644 --- a/client/proxguiqt.cpp +++ b/client/proxguiqt.cpp @@ -130,6 +130,8 @@ ProxGuiQT::~ProxGuiQT(void) { } void ProxGuiQT::SetWindowsPosition (void) { + if (!plotapp || !plotwidget) + return; plotwidget->SetWindowsPosition (); } //-------------------- @@ -262,11 +264,14 @@ void ProxWidget::showEvent(QShowEvent *event) { plot->show(); } void ProxWidget::SetWindowsPosition(void) { - printf ("Settings windows Pos\n"); + +// plotwidget->update(); if (session.preferences_loaded) { setGeometry (session.window_plot_xpos,session.window_plot_ypos,session.window_plot_wsize,session.window_plot_hsize); controlWidget->setGeometry (session.window_overlay_xpos,session.window_overlay_ypos,session.window_overlay_wsize,session.window_overlay_hsize); - } + update(); + controlWidget->update(); + } } //----------- Plotting