]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMApplication.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMApplication.cpp
index 5035feb7a7f40a515748c2b405d2267537a58bc3..a816a96fa188eb08cce1b411f1ae9401f55622b0 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 = words[words.size()-1];
+
   this->path = path;
   this->type = wxDIR_DIRS;
   this->level = level;