Fixed file does not exist problem

This commit is contained in:
Jesse van den Kieboom 2005-12-23 17:53:03 +00:00
parent 304db3bc5f
commit 93574811bc
1 changed files with 2 additions and 1 deletions

View File

@ -308,13 +308,14 @@ gm_triggers_new_from_file(gchar *filename) {
xmlDocPtr doc;
xmlNodePtr cur;
trg->priv->path = g_strdup(filename);
if (!g_file_test(filename, G_FILE_TEST_EXISTS)) {
gm_debug_msg(DEBUG_DEFAULT, "GmTriggers.NewFromFile: Trigger file does not exist");
return trg;
}
trg->priv->path = g_strdup(filename);
doc = xmlParseFile(filename);
if (doc == NULL) {