| Summary: | Umbrello code generator "could not find active language" | ||
|---|---|---|---|
| Product: | [Applications] umbrello | Reporter: | Alberto Pirovano <alberto.pirovano> |
| Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | greg_g |
| Priority: | NOR | ||
| Version First Reported In: | 1.4 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Alberto Pirovano
2005-06-09 11:59:26 UTC
The workaround below should clarify the problem: the menu items in "Code -> Active Language" can have ampersands in them that umbrello does not expect.
Index: umbrello/umbrello/uml.cpp
===================================================================
--- umbrello/umbrello/uml.cpp (revision 428301)
+++ umbrello/umbrello/uml.cpp (working copy)
@@ -1312,7 +1312,7 @@
m_langSelect->setItemChecked(id,true);
- m_activeLanguage = m_langSelect->text(id);
+ m_activeLanguage = m_langSelect->text(id).remove('&');
// update the generator
setGenerator(createGenerator());
SVN commit 432368 by okellogg: setActiveLanguage(): Comment #1 From Gregorio Guidi: > [...] the menu items in "Code -> Active Language" can have ampersands in them > that umbrello does not expect. BUG:107101 M +1 -1 uml.cpp --- trunk/KDE/kdesdk/umbrello/umbrello/uml.cpp #432367:432368 @@ -1312,7 +1312,7 @@ m_langSelect->setItemChecked(id,true); - m_activeLanguage = m_langSelect->text(id); + m_activeLanguage = m_langSelect->text(id).remove('&'); // update the generator setGenerator(createGenerator()); |