Bug 107101 - Umbrello code generator "could not find active language"
Summary: Umbrello code generator "could not find active language"
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-09 11:59 UTC by Alberto Pirovano
Modified: 2005-07-07 07:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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());