Fix regression in dialog Known measurements. Closes #189

This commit is contained in:
Roman Telezhynskyi 2023-01-02 16:41:15 +02:00
parent 7d222bb485
commit e896617c92
2 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@
- New option Show accuracy radius. - New option Show accuracy radius.
- New option Interactive tools. - New option Interactive tools.
- Improve error messages while import CSV data. - Improve error messages while import CSV data.
- [smart-pattern/valentina#189] Fix regression in dialog Known measurements.
# Valentina 0.7.52 September 12, 2022 # Valentina 0.7.52 September 12, 2022
- Fix crash when default locale is ru. - Fix crash when default locale is ru.

View File

@ -41,7 +41,8 @@
DialogMDataBase::DialogMDataBase(const QStringList &list, QWidget *parent) DialogMDataBase::DialogMDataBase(const QStringList &list, QWidget *parent)
:QDialog(parent), :QDialog(parent),
ui(new Ui::DialogMDataBase), ui(new Ui::DialogMDataBase),
m_selectMode(true) m_selectMode(true),
m_list(list)
{ {
ui->setupUi(this); ui->setupUi(this);
@ -49,7 +50,7 @@ DialogMDataBase::DialogMDataBase(const QStringList &list, QWidget *parent)
setWindowFlags(Qt::Window); setWindowFlags(Qt::Window);
#endif #endif
InitDataBase(list); InitDataBase(m_list);
ui->treeWidget->installEventFilter(this); ui->treeWidget->installEventFilter(this);