From eda59bc645ce30e067e4dfa2f79c3fcdc73b1060 Mon Sep 17 00:00:00 2001 From: Kelly W Date: Tue, 7 Jan 2025 14:08:15 -0800 Subject: [PATCH] Resizing Analysis Window Causes Crash #535 --- src/view/frm_dockwidget.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/view/frm_dockwidget.py b/src/view/frm_dockwidget.py index b1db399..244174b 100644 --- a/src/view/frm_dockwidget.py +++ b/src/view/frm_dockwidget.py @@ -818,11 +818,12 @@ def open_analysis(self, analysis: Analysis): if self.analysis_doc_widget is None: self.analysis_doc_widget = FrmAnalysisDocWidget(self) + self.analysis_doc_widget.configure_analysis(self.project, analysis, None) self.iface.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.analysis_doc_widget) self.analysis_doc_widget.visibilityChanged.connect(self.destroy_analysis_doc_widget) - - self.analysis_doc_widget.configure_analysis(self.project, analysis, None) - self.analysis_doc_widget.show() + else: + self.analysis_doc_widget.configure_analysis(self.project, analysis, None) + self.analysis_doc_widget.show() def open_analysis_summary(self):