Browse Source

code cleanup

master
tedjk 11 years ago
parent
commit
32729e7991
  1. 5
      juci/directories.cc

5
juci/directories.cc

@ -32,8 +32,9 @@ 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())
if (count(itr->path().string()) > count(dir_path.string())) { && itr->) {
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());
child[view().m_col_id] = col_id; child[view().m_col_id] = col_id;

Loading…
Cancel
Save