]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix #2838556: emit warning when gpsbabel is not found in PATH
authorGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Thu, 5 Nov 2009 20:22:31 +0000 (21:22 +0100)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Thu, 5 Nov 2009 20:22:31 +0000 (21:22 +0100)
src/babel.c

index 50c90f747b792a6303304a7b78976b347982f6e5..a53b0edd27ceaa110d875255bdc19dd06a844c84 100644 (file)
@@ -226,7 +226,8 @@ gboolean a_babel_convert_from( VikTrwLayer *vt, const char *babelargs, BabelStat
 
       g_free ( unbuffer_loc );
       g_strfreev(sub_args);
-    }
+    } else
+      g_warning("gpsbabel not found in PATH");
     g_free(gpsbabel_loc);
   }
 
@@ -448,7 +449,8 @@ gboolean a_babel_convert_to( VikTrwLayer *vt, const char *babelargs, BabelStatus
 
       g_free ( unbuffer_loc );
       g_strfreev(sub_args);
-    }
+    } else
+      g_warning("gpsbabel not found in PATH");
     g_free(gpsbabel_loc);
   }