]> err.no Git - mapper/commitdiff
Check for HILDON_AUTOCAP before use
authorKaj-Michael Lang <milang@onion.tal.org>
Fri, 5 Oct 2007 08:55:36 +0000 (11:55 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Fri, 5 Oct 2007 08:55:36 +0000 (11:55 +0300)
src/route.c

index a7e4e0c6945e170612949d2cb046eebbd7c330ed..cc99f5f5c3f911a50c5e375fca464c63250fa46f 100644 (file)
@@ -348,7 +348,7 @@ g_signal_connect(G_OBJECT(oti.rad_use_gps), "toggled", G_CALLBACK(origin_type_se
 g_signal_connect(G_OBJECT(oti.rad_use_route), "toggled", G_CALLBACK(origin_type_selected), &oti);
 g_signal_connect(G_OBJECT(oti.rad_use_text), "toggled", G_CALLBACK(origin_type_selected), &oti);
 
-#if WITH_HILDON
+#if WITH_HILDON && HILDON_AUTOCAP
 g_object_set(G_OBJECT(oti.txt_from), HILDON_AUTOCAP, FALSE, NULL);
 g_object_set(G_OBJECT(oti.txt_to), HILDON_AUTOCAP, FALSE, NULL);
 #endif