Bug 341799

Summary: c++ import requests name for global name space
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.14.3 (KDE Applications 4.14.3)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 2.15.1 (KDE 14.12.1)
Attachments: test case

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