diff --git a/src/app/dialogs/tools/dialogdetail.cpp b/src/app/dialogs/tools/dialogdetail.cpp index 38e320216..7e37218f4 100644 --- a/src/app/dialogs/tools/dialogdetail.cpp +++ b/src/app/dialogs/tools/dialogdetail.cpp @@ -168,32 +168,17 @@ void DialogDetail::NewItem(quint32 id, const Tool &typeTool, const NodeDetail &t switch (typeTool) { case (Tool::NodePoint): - { - const QSharedPointer point = data->GeometricObject(id); - name = point->name(); - break; - } case (Tool::NodeArc): - { - const QSharedPointer arc = data->GeometricObject(id); - name = arc->name(); - break; - } case (Tool::NodeSpline): - { - const QSharedPointer spl = data->GeometricObject(id); - name = spl->name(); - break; - } case (Tool::NodeSplinePath): { - const QSharedPointer splPath = data->GeometricObject(id); - name = splPath->name(); + const QSharedPointer obj = data->GeometricObject(id); + name = obj->name(); break; } default: qDebug()<<"Got wrong tools. Ignore."; - break; + return; } QListWidgetItem *item = new QListWidgetItem(name);