Commit 0b46604f authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix 'Displayed name of an interface in a component diagram is not updated'

BUG:403763
FIXED-IN:2.27.2 (KDE Applications 18.12.2)
parent c2f15333
......@@ -255,7 +255,11 @@ bool FloatingTextWidget::showOperationDialog(bool enableAutoIncrement)
*/
bool FloatingTextWidget::showPropertiesDialog()
{
if (m_textRole == Uml::TextRole::Coll_Message || m_textRole == Uml::TextRole::Coll_Message_Self ||
UMLWidget *p = dynamic_cast<UMLWidget*>(parentItem());
if (p && p->isInterfaceWidget()) {
if (p->showPropertiesDialog())
setText(p->name());
} else if (m_textRole == Uml::TextRole::Coll_Message || m_textRole == Uml::TextRole::Coll_Message_Self ||
m_textRole == Uml::TextRole::Seq_Message || m_textRole == Uml::TextRole::Seq_Message_Self) {
return showOperationDialog(false);
} else if (m_textRole == Uml::TextRole::Floating) {
......
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