Valentina crashes when remove a group operation.
This commit is contained in:
parent
7c065e22d1
commit
e0ca7e5d80
|
@ -311,7 +311,6 @@ void VWidgetGroups::UpdateGroups()
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VWidgetGroups::FillTable(QMap<quint32, VGroupData> groups)
|
void VWidgetGroups::FillTable(QMap<quint32, VGroupData> groups)
|
||||||
{
|
{
|
||||||
emit doc->UpdateToolTip();
|
|
||||||
ui->lineEditTags->SetCompletion(doc->GetGroupCategories());
|
ui->lineEditTags->SetCompletion(doc->GetGroupCategories());
|
||||||
|
|
||||||
groups = FilterGroups(groups);
|
groups = FilterGroups(groups);
|
||||||
|
|
|
@ -92,6 +92,8 @@ void AddGroup::undo()
|
||||||
{
|
{
|
||||||
emit doc->SetCurrentPP(nameActivDraw);//Return current pattern piece after undo
|
emit doc->SetCurrentPP(nameActivDraw);//Return current pattern piece after undo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit doc->UpdateToolTip();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -114,6 +116,8 @@ void AddGroup::redo()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit doc->UpdateToolTip();
|
||||||
|
|
||||||
VMainGraphicsView::NewSceneRect(qApp->getCurrentScene(), qApp->getSceneView());
|
VMainGraphicsView::NewSceneRect(qApp->getCurrentScene(), qApp->getSceneView());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,6 +138,7 @@ void RenameGroup::undo()
|
||||||
qCDebug(vUndo, "Undo.");
|
qCDebug(vUndo, "Undo.");
|
||||||
doc->SetGroupName(nodeId, oldName);
|
doc->SetGroupName(nodeId, oldName);
|
||||||
emit UpdateGroups();
|
emit UpdateGroups();
|
||||||
|
emit doc->UpdateToolTip();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -143,6 +148,7 @@ void RenameGroup::redo()
|
||||||
|
|
||||||
doc->SetGroupName(nodeId, newName);
|
doc->SetGroupName(nodeId, newName);
|
||||||
emit UpdateGroups();
|
emit UpdateGroups();
|
||||||
|
emit doc->UpdateToolTip();
|
||||||
}
|
}
|
||||||
|
|
||||||
//ChangeGroupOptions
|
//ChangeGroupOptions
|
||||||
|
@ -166,6 +172,7 @@ void ChangeGroupOptions::undo()
|
||||||
doc->SetGroupName(nodeId, oldName);
|
doc->SetGroupName(nodeId, oldName);
|
||||||
doc->SetGroupTags(nodeId, oldTags);
|
doc->SetGroupTags(nodeId, oldTags);
|
||||||
emit UpdateGroups();
|
emit UpdateGroups();
|
||||||
|
emit doc->UpdateToolTip();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -175,6 +182,7 @@ void ChangeGroupOptions::redo()
|
||||||
doc->SetGroupName(nodeId, newName);
|
doc->SetGroupName(nodeId, newName);
|
||||||
doc->SetGroupTags(nodeId, newTags);
|
doc->SetGroupTags(nodeId, newTags);
|
||||||
emit UpdateGroups();
|
emit UpdateGroups();
|
||||||
|
emit doc->UpdateToolTip();
|
||||||
}
|
}
|
||||||
|
|
||||||
//AddItemToGroup
|
//AddItemToGroup
|
||||||
|
|
Loading…
Reference in New Issue
Block a user