totem r6223 - in trunk: . src



Author: hadess
Date: Wed Apr  1 19:00:42 2009
New Revision: 6223
URL: http://svn.gnome.org/viewvc/totem?rev=6223&view=rev

Log:
2009-04-01  Bastien Nocera  <hadess hadess net>

	* src/totem-playlist.c (totem_playlist_file_changed):
	Only remove files when the location is about to be umounted,
	or is umounted (Closes: #574097)



Modified:
   trunk/ChangeLog
   trunk/src/totem-playlist.c

Modified: trunk/src/totem-playlist.c
==============================================================================
--- trunk/src/totem-playlist.c	(original)
+++ trunk/src/totem-playlist.c	Wed Apr  1 19:00:42 2009
@@ -1544,7 +1544,8 @@
 			     GFileMonitorEvent event_type,
 			     TotemPlaylist *playlist)
 {
-	if (event_type == G_FILE_MONITOR_EVENT_DELETED) {
+	if (event_type == G_FILE_MONITOR_EVENT_PRE_UNMOUNT ||
+	    event_type == G_FILE_MONITOR_EVENT_UNMOUNTED) {
 		totem_playlist_clear_with_compare (playlist,
 						   (ClearComparisonFunc) totem_playlist_compare_with_monitor,
 						   monitor);



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