summaryrefslogtreecommitdiff
path: root/plugins/gtkui/trkproperties.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-06-23 22:25:52 +0200
committerGravatar waker <wakeroid@gmail.com>2011-06-23 22:25:52 +0200
commitc6f25378c2d82ed6b04faf345a3a7cd0a0327922 (patch)
tree4407e0bfc07cf63202203aebdf86dc9f9ba2fe88 /plugins/gtkui/trkproperties.c
parent2a742d1daf62690a09ca22deda28e54a20229e43 (diff)
fixed crach in trkproperties when 0 tracks selected
Diffstat (limited to 'plugins/gtkui/trkproperties.c')
-rw-r--r--plugins/gtkui/trkproperties.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtkui/trkproperties.c b/plugins/gtkui/trkproperties.c
index 81a90ae1..5ff479ce 100644
--- a/plugins/gtkui/trkproperties.c
+++ b/plugins/gtkui/trkproperties.c
@@ -281,6 +281,9 @@ add_field (GtkListStore *store, const char *key, const char *title, int is_prop,
void
trkproperties_fill_meta (GtkListStore *store, DB_playItem_t **tracks, int numtracks) {
gtk_list_store_clear (store);
+ if (!tracks) {
+ return;
+ }
const char **keys = NULL;
int nkeys = build_key_list (&keys, 0, tracks, numtracks);