Browse Source

made it work

merge-requests/365/head
tedjk 11 years ago
parent
commit
7d6d7d6a92
  1. 3
      juci/directories.cc

3
juci/directories.cc

@ -32,8 +32,7 @@ list_dirs(const boost::filesystem::path& dir_path,
for ( boost::filesystem::directory_iterator itr( dir_path ); for ( boost::filesystem::directory_iterator itr( dir_path );
itr != end_itr; itr != end_itr;
++itr ) { ++itr ) {
if (boost::filesystem::is_directory(itr->status()) if (boost::filesystem::is_directory(itr->status())) {
&& itr->) {
if (count(itr->path().string()) > count(dir_path.string())) { // is child if (count(itr->path().string()) > count(dir_path.string())) { // is child
child = *(m_refTreeModel->append(parent.children())); child = *(m_refTreeModel->append(parent.children()));
std::string col_id("a"+itr->path().filename().string()); std::string col_id("a"+itr->path().filename().string());

Loading…
Cancel
Save