Fix bug in dialog Seam allowance tool.

Don't show the dialog if a main path doesn't contain at least one item.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-11-15 15:25:38 +02:00
parent 037d1daaaa
commit e6c59de3ca

View File

@ -441,7 +441,7 @@ void DialogSeamAllowance::ChosenObject(quint32 id, const SceneObject &type)
//---------------------------------------------------------------------------------------------------------------------
void DialogSeamAllowance::ShowDialog(bool click)
{
if (click == false)
if (click == false && uiTabPaths->listWidgetMainPath->count() > 0)
{
emit ToolTip("");
prepare = true;