sound-juicer r2000 - in trunk: . src



Author: rburton
Date: Wed Jan 23 15:54:48 2008
New Revision: 2000
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=2000&view=rev

Log:
2008-01-23  Ross Burton  <ross burtonini com>

	* src/sj-main.c:
	Check that the release date is not NULL before checking that it is
	valid.


Modified:
   trunk/ChangeLog
   trunk/src/sj-main.c

Modified: trunk/src/sj-main.c
==============================================================================
--- trunk/src/sj-main.c	(original)
+++ trunk/src/sj-main.c	Wed Jan 23 15:54:48 2008
@@ -525,7 +525,7 @@
     if (album->disc_number) {
       gtk_entry_set_text (GTK_ENTRY (disc_number_entry), g_strdup_printf ("%d", album->disc_number));
     }
-    if (g_date_valid (album->release_date)) {
+    if (album->release_date && g_date_valid (album->release_date)) {
       gtk_entry_set_text (GTK_ENTRY (year_entry), g_strdup_printf ("%d", g_date_get_year (album->release_date)));
     }
     g_signal_handlers_unblock_by_func (title_entry, on_title_edit_changed, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]