Gui: fix crash on editing PropertyVectorList in property view

This commit is contained in:
Zheng, Lei
2022-03-10 22:02:49 +08:00
committed by wwmayer
parent 3b4b5a4e7c
commit c5a0db5e47

View File

@@ -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<QList<Base::Vector3d>>());
QPoint p(0, 0);
p = this->mapToGlobal(p);