|
|
|
@ -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; |
|
|
|
|