]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMLibrary.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMLibrary.cpp
index c9aeb1fa5138c7f7abe8a2440d1bc5504ca76a45..cfd04119528f70e3dc72830a3b09bc68f6e45e6c 100644 (file)
@@ -44,7 +44,13 @@ modelCDMLibrary::modelCDMLibrary()
 
 modelCDMLibrary::modelCDMLibrary(const std::string& path, const int& level)
 {
-  this->name = "library";
+  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;