aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2008-06-09 14:29:32 +0000
committerRoss Burton <ross@linux.intel.com>2008-06-09 14:29:32 +0000
commitb84f766bc5a0484ea1ff2ac668af2f0626872b39 (patch)
treea09fba6b815fd375c33e4d8dc6aedde529ca0c65
parenta14d7ae37b960901ca7cc324626aff444f0f23c3 (diff)
downloadgaku-b84f766bc5a0484ea1ff2ac668af2f0626872b39.tar.gz
gaku-b84f766bc5a0484ea1ff2ac668af2f0626872b39.tar.bz2
gaku-b84f766bc5a0484ea1ff2ac668af2f0626872b39.zip
Only set title and artist if we have a value
-rw-r--r--main.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/main.c b/main.c
index f911555..97c59fb 100644
--- a/main.c
+++ b/main.c
@@ -364,11 +364,16 @@ tag_reader_uri_scanned_cb (TagReader *tag_reader,
/**
* Found a matching row.
**/
- gtk_list_store_set (data->list_store,
- &iter,
- COL_TITLE, title,
- COL_ARTIST, artist,
- -1);
+ if (title)
+ gtk_list_store_set (data->list_store,
+ &iter,
+ COL_TITLE, title,
+ -1);
+ if (artist)
+ gtk_list_store_set (data->list_store,
+ &iter,
+ COL_ARTIST, artist,
+ -1);
if (iter_is_playing_row (data, &iter)) {
/**