Bug 107101

Summary: Umbrello code generator "could not find active language"
Product: [Applications] umbrello Reporter: Alberto Pirovano <alberto.pirovano>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal CC: greg_g
Priority: NOR    
Version: 1.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alberto Pirovano 2005-06-09 11:59:26 UTC
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".
Comment 1 Gregorio Guidi 2005-07-06 23:32:54 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());
Comment 2 Oliver Kellogg 2005-07-07 07:45:13 UTC
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());