mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix crash when clicking on icon column in trip header entries
Silly oversight. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9e0a316812
commit
714d5e2443
1 changed files with 1 additions and 1 deletions
|
@ -1714,7 +1714,7 @@ gboolean icon_click_cb(GtkWidget *w, GdkEventButton *event, gpointer data)
|
|||
gtk_tree_model_get_iter(MODEL(dive_list), &iter, path);
|
||||
gtk_tree_model_get(MODEL(dive_list), &iter, DIVE_INDEX, &idx, -1);
|
||||
dive = get_dive(idx);
|
||||
if (dive->latitude.udeg || dive->longitude.udeg)
|
||||
if (dive && (dive->latitude.udeg || dive->longitude.udeg))
|
||||
show_gps_location(dive);
|
||||
}
|
||||
gtk_tree_path_free(path);
|
||||
|
|
Loading…
Add table
Reference in a new issue