changeset 1506:2a8e193c07a6 trunk

[svn] Fix the test for whether a notification is necessary
author deitarion
date Sat, 05 Aug 2006 23:43:14 -0700
parents a81b4b655685
children 0c5fdcf3f947
files ChangeLog Plugins/General/notify/notify.c
diffstat 2 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Aug 05 22:55:11 2006 -0700
+++ b/ChangeLog	Sat Aug 05 23:43:14 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-06 05:55:11 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1924]
+  - fix!
+  
+
+  Changes:        Modified:
+  +1 -1           trunk/Plugins/General/notify/notify.c  
+
+
 2006-08-05 22:10:37 +0000  Tony Vroon <chainsaw@gentoo.org>
   revision [1922]
   Updated german translation by Michael Hanselmann <hansmi@gentoo.org>: 988 translated messages, 2 untranslated messages.
--- a/Plugins/General/notify/notify.c	Sat Aug 05 22:55:11 2006 -0700
+++ b/Plugins/General/notify/notify.c	Sat Aug 05 23:43:14 2006 -0700
@@ -63,9 +63,9 @@
 	gint pos = playlist_get_position();
 	gchar *title = playlist_get_songtitle(pos);
 
-	if (pos != notify_playlist_pos ||
-		(title != NULL && previous_title != NULL &&
-		 g_strcasecmp(title, previous_title)))
+	if ((title != NULL && previous_title != NULL &&
+		    g_strcasecmp(title, previous_title)) ||
+		    (title == NULL && pos != notify_playlist_pos))
 	{
 		gchar *tmpbuf;
 		TitleInput *tuple;