Commit 508dff46 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix 'Different name when adding connected states compared to adding via the toolbar'

BUG:415890
FIXED-IN:2.30.1 (KDE Applications 19.12.1)
parent ed0b7085
......@@ -51,6 +51,7 @@
#include "usecasewidget.h"
#include "uniqueid.h"
#include "widget_factory.h"
#include "widget_utils.h"
// kde includes
#include <KLocalizedString>
......@@ -2110,6 +2111,8 @@ bool UMLWidget::loadFromXMI1(QDomElement & qElement)
*/
void UMLWidget::addConnectedWidget(UMLWidget *widget, Uml::AssociationType::Enum type, AddWidgetOptions options)
{
QString name = Widget_Utils::defaultWidgetName(widget->baseType());
widget->setName(name);
if (options & ShowProperties) {
if (!widget->showPropertiesDialog()) {
delete widget;
......
Supports Markdown
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