Skip to content
Snippets Groups Projects
Commit fc341f7e authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

fix disconnection in setParameterContainer

parent b6db52ab
No related branches found
No related tags found
1 merge request!2823Review and fix disconnections
......@@ -97,7 +97,7 @@ void ParameterBackupWidget::setParameterContainer(ParameterContainerItem* contai
m_container = container;
// new snapshot
disconnect(m_create);
m_create->disconnect();
connect(m_create, &QPushButton::clicked, [this] {
QString newName;
NewSnapshotDialog dialog(newName);
......@@ -110,7 +110,7 @@ void ParameterBackupWidget::setParameterContainer(ParameterContainerItem* contai
});
// delete snapshot
disconnect(m_remove);
m_remove->disconnect();
connect(m_remove, &QPushButton::clicked, [this] {
if (m_combo->currentIndex() >= 0) {
m_container->deleteBackupValues(m_combo->currentIndex());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment