Commit 7547fc9a authored by Ralf Habacker's avatar Ralf Habacker

Fix 'Bug in Source Code Editor'

Update source code similar to the documentation in operation page of
class property dialog in case the properties of the operation has been
updated.

FIXED-IN:2.24.2 (KDE Applications 17.12.2)
parent f6e2c3f5
......@@ -712,6 +712,14 @@ void ClassifierListPage::slotDoubleClick(QListWidgetItem* item)
if (listItem->showPropertiesDialog(this)) {
m_pItemListLB->item(m_pItemListLB->row(item))->setText(listItem->toString(Uml::SignatureType::SigNoVis));
m_docTE->setText(listItem->doc());
if (m_itemType == UMLObject::ot_Operation) {
UMLOperation* o = listItem->asUMLOperation();
if (!o) {
uError() << "Dynamic cast to UMLOperation failed for" << listItem->name();
return;
}
m_pCodeTE->setPlainText(o->getSourceCode());
}
}
}
......
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