Commit 5db769b4 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Add all entries to the completion object, not only the last one in class SelectDiagramWidget

Fixup for commit 55d219037eee9513774edfe206dec0d8dfc7b161
parent 78b095b4
......@@ -56,9 +56,10 @@ void SelectDiagramWidget::setupWidget(Uml::DiagramType::Enum type, const QString
QString name = view->umlScene()->name();
if (name == excludeName)
continue;
if (type == Uml::DiagramType::Undefined || type == view->umlScene()->type())
if (type == Uml::DiagramType::Undefined || type == view->umlScene()->type()) {
diagrams << name;
m_editField->completionObject()->addItem(name);
}
}
diagrams.sort();
if (withNewEntry)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment