Prevent warning when trying to load an active plugin at startup that
doesn't exist on disk any more. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2781 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
43484b8a51
commit
71d5e59566
@ -30,6 +30,9 @@
|
||||
* plugins/filebrowser.c:
|
||||
Show '..' item when the current folder is empty (fixes #2015121).
|
||||
Replace is_top_level_directory() code by checking g_path_skip_root().
|
||||
* src/plugins.c:
|
||||
Prevent warning when trying to load an active plugin at startup that
|
||||
doesn't exist on disk any more.
|
||||
|
||||
|
||||
2008-07-14 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
@ -676,7 +676,7 @@ load_active_plugins()
|
||||
{
|
||||
const gchar *fname = active_plugins_pref[i];
|
||||
|
||||
if (NZV(fname))
|
||||
if (NZV(fname) && g_file_test(fname, G_FILE_TEST_EXISTS))
|
||||
{
|
||||
if (plugin_new(fname, TRUE, FALSE) == NULL)
|
||||
failed_plugins_list = g_list_append(failed_plugins_list, g_strdup(fname));
|
||||
|
Loading…
x
Reference in New Issue
Block a user