]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMApplication.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMApplication.cpp
index 5035feb7a7f40a515748c2b405d2267537a58bc3..17a660a4c6aa8e6d6a60f58249a2153ed68dc464 100644 (file)
@@ -44,7 +44,13 @@ modelCDMApplication::modelCDMApplication()
 
 modelCDMApplication::modelCDMApplication(const std::string& path, const int& level)
 {
-  this->name = "application";
+  std::vector<std::string> words;
+  std::string delimiters;
+  //TODO::fix for windows
+  delimiters = "/";
+  CDMUtilities::splitter::split(words, path, delimiters, CDMUtilities::splitter::no_empties);
+  this->name = this->nameApplication = words[words.size()-1];
+
   this->path = path;
   this->type = wxDIR_DIRS;
   this->level = level;