Bug 341799 - c++ import requests name for global name space
Summary: c++ import requests name for global name space
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.14.3 (KDE Applications 4.14.3)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-12 09:52 UTC by Ralf Habacker
Modified: 2014-12-12 10:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.15.1 (KDE 14.12.1)


Attachments
test case (46 bytes, text/x-chdr)
2014-12-12 09:53 UTC, Ralf Habacker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2014-12-12 09:52:51 UTC
Importing the following code snippet 

class Test : public ::testing::TestBase {};

results into a popup asking the user to insert a name for the global name space.


Reproducible: Always

Steps to Reproduce:
1. open umbrello
2. import the appended test case through TreeView->"Logical View"->"Import File"


Actual Results:  
A popup is shown asking for the global name space

Expected Results:  
The dialog should not be shown. The global name space does not have a name.
Comment 1 Ralf Habacker 2014-12-12 09:53:30 UTC
Created attachment 89935 [details]
test case
Comment 2 Ralf Habacker 2014-12-12 10:00:00 UTC
Git commit 00260417b1813ab5d236f650f5105f259fc0e1fd by Ralf Habacker.
Committed on 12/12/2014 at 09:55.
Pushed by habacker into branch 'Applications/14.12'.

Fix 'c++ import requests name for global name space'.

The name space parsing code in Import_utils::createUMLObject()
did not ignore the global (=empty) name space.

M  +1    -1    umbrello/codeimport/import_utils.cpp

http://commits.kde.org/umbrello/00260417b1813ab5d236f650f5105f259fc0e1fd