summaryrefslogtreecommitdiff
path: root/DockWidgets/DockWidgetMixer.py
diff options
context:
space:
mode:
Diffstat (limited to 'DockWidgets/DockWidgetMixer.py')
-rw-r--r--DockWidgets/DockWidgetMixer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/DockWidgets/DockWidgetMixer.py b/DockWidgets/DockWidgetMixer.py
index 6ec6795..748ef4f 100644
--- a/DockWidgets/DockWidgetMixer.py
+++ b/DockWidgets/DockWidgetMixer.py
@@ -49,4 +49,8 @@ class DockWidgetMixer(QDockWidget,ui_dialog):
self.hide()
except Exception as e:
- print(e) \ No newline at end of file
+ print(e)
+ def closeEvent(self,event):
+ scrollHVal = self.parent().container.graphics.graphicsView.horizontalScrollBarVal
+ currentVal = self.parent().container.graphics.graphicsView.horizontalScrollBar().value()
+ self.parent().container.graphics.graphicsView.horizontalScrollBar().setValue((scrollHVal+currentVal)/2) \ No newline at end of file