Bug 107101: Umbrello code generator "could not find active language" (normal)
Opened:2005-06-09 11:59
Product:umbrello
Component:general
Version:1.4
Status:RESOLVED
Platform:unspecified
Resolution:FIXED
Reporter:Alberto Pirovano
Assigned to:Umbrello Development Group

Version:           1.4 (using KDE 3.4.0, Debian Package 4:3.4.0-0ubuntu3.2 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)
OS:                Linux (i686) release 2.6.10-5-386

When choosing active language for code generation in Umbrello (Kubuntu 5.0.4), it complains "Could not find active language.
Please select one of the installed languages to generate the code with".


------- Additional Comment #1 From Gregorio Guidi 2005-07-06 23:32 -------
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)
 at  at  -1312,7 +1312,7  at  at


                m_langSelect->setItemChecked(id,true);
-               m_activeLanguage = m_langSelect->text(id);
+               m_activeLanguage = m_langSelect->text(id).remove('&');

                // update the generator
                setGenerator(createGenerator());


------- Additional Comment #2 From Oliver Kellogg 2005-07-07 07:45 -------
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
 at  at  -1312,7 +1312,7  at  at
 
 
         m_langSelect->setItemChecked(id,true);
-        m_activeLanguage = m_langSelect->text(id);
+        m_activeLanguage = m_langSelect->text(id).remove('&');
 
         // update the generator
         setGenerator(createGenerator());


Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments:


View Bug Activity   |   Format For Printing


Attachment Type Modified Status Actions
Create a New Attachment (proposed patch, testcase, etc.) View All


Actions: Query | Reports Search:   New Account | Log In