|
|
|
@ -702,11 +702,8 @@ void Directories::add_or_update_path(const boost::filesystem::path &dir_path, co |
|
|
|
grandchild->set_value(column_record.markup, Glib::Markup::escape_text("(empty)")); |
|
|
|
grandchild->set_value(column_record.markup, Glib::Markup::escape_text("(empty)")); |
|
|
|
grandchild->set_value(column_record.type, PathType::unknown); |
|
|
|
grandchild->set_value(column_record.type, PathType::unknown); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else |
|
|
|
auto language = Source::guess_language(filename.first); |
|
|
|
child->set_value(column_record.type, Source::guess_language(filename.second) ? PathType::known : PathType::unknown); |
|
|
|
if(!language) |
|
|
|
|
|
|
|
child->set_value(column_record.type, PathType::unknown); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(children.empty()) { |
|
|
|
if(children.empty()) { |
|
|
|
|