Summary: | parameter types don't show up until diagram is reloaded | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Jonathan Riddell <jr> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jonathan Riddell
2005-10-03 00:19:29 UTC
Thanks for the tip Jonathan. This was really bothering me. SVN commit 478044 by okellogg: slotOk(): Call UMLDoc::createUMLObject(Uml::ot_Class) if typeName not found. BUG:113748 M +1 -1 ChangeLog M +7 -4 umbrello/dialogs/parmpropdlg.cpp --- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #478043:478044 @@ -13,7 +13,7 @@ 57588 57672 58809 66461 67120 67719 72016 79433 87252 88117 97162 98368 101550 105564 107405 108223 109591 109636 110073 110216 110231 110379 110400 110843 111088 111470 111502 111759 111768 112017 -112292 112293 112333 112531 112552 112936 112991 112992 114892 +112292 112293 112333 112531 112552 112936 112991 112992 113748 114892 Version 1.4.2 (maintenance release) --- branches/KDE/3.5/kdesdk/umbrello/umbrello/dialogs/parmpropdlg.cpp #478043:478044 @@ -1,5 +1,5 @@ /* - * copyright (C) 2002-2004 + * copyright (C) 2002-2005 * Umbrello UML Modeller Authors <uml-devel@ uml.sf.net> */ @@ -204,10 +204,13 @@ } } if (obj == NULL) { - // Nothing found: set type name directly. Bad. + // Nothing found: Create a new type on the fly. + // @todo There should be an extra dialog to decide whether to + // create a datatype or a class. For now, we create a class. kdDebug() << "ParmPropDlg::slotOk: " << typeName << " not found." - << endl; - m_pAtt->setTypeName( typeName ); + << " Creating a new class for the type." << endl; + UMLObject *o = m_pUmldoc->createUMLObject(Uml::ot_Class, typeName); + m_pAtt->setType(o); } } |