[Xfce4-commits] <thunar:master> Only reload a file if there is a thumbnail ready.

Nick Schermer noreply at xfce.org
Tue Oct 30 22:06:08 CET 2012


Updating branch refs/heads/master
         to 0d5b53acae487b33641c1590ab57221941c97f08 (commit)
       from 42118955ae58b425c41037bf59b0f82708e76880 (commit)

commit 0d5b53acae487b33641c1590ab57221941c97f08
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Oct 30 20:13:53 2012 +0100

    Only reload a file if there is a thumbnail ready.

 thunar/thunar-file.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 4f2d12e..3f68156 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -3211,10 +3211,8 @@ thunar_file_set_thumb_state (ThunarFile          *file,
       file->thumbnail_path = NULL;
     }
 
-  /* notify others of this change, so that all components can update
-   * their file information. loading is only a state for the thumbnailer,
-   * so don't emit changes for that */
-  if (state != THUNAR_FILE_THUMB_STATE_LOADING)
+  /* if the file has a thumbnail, reload it */
+  if (state == THUNAR_FILE_THUMB_STATE_READY)
     thunar_file_monitor_file_changed (file);
 }
 


More information about the Xfce4-commits mailing list