From e896617c926abc8380d3a9bea8b58e3a09dbe3eb Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 2 Jan 2023 16:41:15 +0200 Subject: [PATCH] Fix regression in dialog Known measurements. Closes #189 --- ChangeLog.txt | 1 + src/app/tape/dialogs/dialogmdatabase.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index be68caa21..d1da7844c 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -11,6 +11,7 @@ - New option Show accuracy radius. - New option Interactive tools. - Improve error messages while import CSV data. +- [smart-pattern/valentina#189] Fix regression in dialog Known measurements. # Valentina 0.7.52 September 12, 2022 - Fix crash when default locale is ru. diff --git a/src/app/tape/dialogs/dialogmdatabase.cpp b/src/app/tape/dialogs/dialogmdatabase.cpp index 9871b910e..c4c0ea74e 100644 --- a/src/app/tape/dialogs/dialogmdatabase.cpp +++ b/src/app/tape/dialogs/dialogmdatabase.cpp @@ -41,7 +41,8 @@ DialogMDataBase::DialogMDataBase(const QStringList &list, QWidget *parent) :QDialog(parent), ui(new Ui::DialogMDataBase), - m_selectMode(true) + m_selectMode(true), + m_list(list) { ui->setupUi(this); @@ -49,7 +50,7 @@ DialogMDataBase::DialogMDataBase(const QStringList &list, QWidget *parent) setWindowFlags(Qt::Window); #endif - InitDataBase(list); + InitDataBase(m_list); ui->treeWidget->installEventFilter(this);