diff -r b692088dc1a6 -r 609b75b026c4 src/guiutilities.cpp --- a/src/guiutilities.cpp Sun Mar 18 12:37:40 2018 +0200 +++ b/src/guiutilities.cpp Sun Mar 18 23:31:15 2018 +0200 @@ -19,12 +19,14 @@ #include #include #include +#include #include "colors.h" #include "guiutilities.h" #include "lddocument.h" #include "dialogs/colorselector.h" #include "mainwindow.h" #include "linetypes/modelobject.h" +#include "linetypes/comment.h" #include "dialogs/subfilereferenceeditor.h" #include "widgets/vertexobjecteditor.h" @@ -179,6 +181,17 @@ editor.setPrimitivesTree(parent->primitives()); editor.exec(); } + else if (object->type() == LDObjectType::Comment) + { + LDComment* comment = static_cast(object); + comment->setText(QInputDialog::getText( + parent, + QObject::tr("Edit comment"), + QObject::tr("Comment text:"), + QLineEdit::Normal, + comment->text() + )); + } else { VertexObjectEditor editor {object, parent};