From c5a0db5e4736a6cd43d239e15d5e0daf7006a642 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Thu, 10 Mar 2022 22:02:49 +0800 Subject: [PATCH] Gui: fix crash on editing PropertyVectorList in property view --- src/Gui/propertyeditor/PropertyItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index 1b270b467f..66deba4078 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -1565,7 +1565,7 @@ VectorListWidget::VectorListWidget(int decimals, QWidget *parent) void VectorListWidget::buttonClicked() { - VectorListEditor dlg(decimals, Gui::getMainWindow()); + VectorListEditor dlg(decimals, this); dlg.setValues(value().value>()); QPoint p(0, 0); p = this->mapToGlobal(p);