[geany/geany-plugins] 05ddb1: Merge pull request #715 from LarsGit223/wb-dbgmsg1
Frank Lanitz
git-noreply at xxxxx
Sat Mar 10 05:41:13 UTC 2018
Branch: refs/heads/master
Author: Frank Lanitz <frank at frank.uvena.de>
Committer: GitHub <noreply at github.com>
Date: Sat, 10 Mar 2018 05:41:13 UTC
Commit: 05ddb19640d1092646b6c7b2745444eec4624cbe
https://github.com/geany/geany-plugins/commit/05ddb19640d1092646b6c7b2745444eec4624cbe
Log Message:
-----------
Merge pull request #715 from LarsGit223/wb-dbgmsg1
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(-)
===================================================================
@@ -824,16 +824,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