[geany/geany-plugins] dcc379: workbench: fixed tag-manager warning. Fixes #713.
LarsDW223
git-noreply at xxxxx
Thu Mar 1 20:38:14 UTC 2018
Branch: refs/heads/master
Author: LarsDW223 <lars_paulsen at web.de>
Committer: LarsDW223 <lars_paulsen at web.de>
Date: Thu, 01 Mar 2018 20:38:14 UTC
Commit: dcc37957e917a2e8c2f3e5d483c9a832eceff1e0
https://github.com/geany/geany-plugins/commit/dcc37957e917a2e8c2f3e5d483c9a832eceff1e0
Log Message:
-----------
workbench: fixed tag-manager warning. Fixes #713.
Modified Paths:
--------------
workbench/src/wb_project.c
Modified: workbench/src/wb_project.c
19 lines changed, 11 insertions(+), 8 deletions(-)
===================================================================
@@ -612,16 +612,19 @@ static void wb_project_dir_regenerate_tags(WB_PROJECT_DIR *root, G_GNUC_UNUSED g
g_hash_table_iter_init(&iter, root->file_table);
while (g_hash_table_iter_next(&iter, &key, &value))
{
- TMSourceFile *sf;
- gchar *utf8_path = key;
- gchar *locale_path = utils_get_locale_from_utf8(utf8_path);
+ if (g_file_test(key, G_FILE_TEST_IS_REGULAR))
+ {
+ TMSourceFile *sf;
+ gchar *utf8_path = key;
+ gchar *locale_path = utils_get_locale_from_utf8(utf8_path);
- sf = tm_source_file_new(locale_path, filetypes_detect(utf8_path)->name);
- if (sf && !document_find_by_filename(utf8_path))
- g_ptr_array_add(source_files, sf);
+ sf = tm_source_file_new(locale_path, filetypes_detect(utf8_path)->name);
+ if (sf && !document_find_by_filename(utf8_path))
+ g_ptr_array_add(source_files, sf);
- g_hash_table_insert(file_table, g_strdup(utf8_path), sf);
- g_free(locale_path);
+ g_hash_table_insert(file_table, g_strdup(utf8_path), sf);
+ g_free(locale_path);
+ }
}
g_hash_table_destroy(root->file_table);
root->file_table = file_table;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list