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".
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());