diff options
-rw-r--r-- | divelist-gtk.c | 1 | ||||
-rw-r--r-- | gps.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/divelist-gtk.c b/divelist-gtk.c index 79613e012..49f4b143c 100644 --- a/divelist-gtk.c +++ b/divelist-gtk.c @@ -34,6 +34,7 @@ #include "display.h" #include "display-gtk.h" #include "webservice.h" +#include "profile.h" #include <gdk-pixbuf/gdk-pixdata.h> #include "satellite.h" @@ -147,7 +147,7 @@ static void add_gps_point(OsmGpsMap *map, float latitude, float longitude) static void key_press_event(GtkWidget *window, GdkEventKey *event, gpointer data) { if ((event->string != NULL && event->keyval == GDK_Escape) || - (event->string != NULL && event->keyval == GDK_w && event->state & GDK_CONTROL_MASK)) { + (event->string != NULL && event->keyval == GDK_w && (event->state & GDK_CONTROL_MASK))) { gtk_widget_destroy(window); } } |