diff src/preferences.c @ 1506:d352a44545a6

Force thumbnails refreshing when thumbnails dimensions are modified through Preferences.
author zas_
date Thu, 02 Apr 2009 23:11:07 +0000
parents f879e7d94c6d
children ad5018434476
line wrap: on
line diff
--- a/src/preferences.c	Thu Apr 02 16:10:12 2009 +0000
+++ b/src/preferences.c	Thu Apr 02 23:11:07 2009 +0000
@@ -251,8 +251,16 @@
 	options->image.limit_autofit_size = c_options->image.limit_autofit_size;
 	options->image.max_autofit_size = c_options->image.max_autofit_size;
 	options->progressive_key_scrolling = c_options->progressive_key_scrolling;
-	options->thumbnails.max_width = c_options->thumbnails.max_width;
-	options->thumbnails.max_height = c_options->thumbnails.max_height;
+	if (options->thumbnails.max_width != c_options->thumbnails.max_width
+	    || options->thumbnails.max_height != c_options->thumbnails.max_height
+	    || options->thumbnails.quality != c_options->thumbnails.quality)
+	        {
+	    	thumb_format_changed = TRUE;
+		refresh = TRUE;
+		options->thumbnails.max_width = c_options->thumbnails.max_width;
+		options->thumbnails.max_height = c_options->thumbnails.max_height;
+		options->thumbnails.quality = c_options->thumbnails.quality;
+		}
 	options->thumbnails.enable_caching = c_options->thumbnails.enable_caching;
 	options->thumbnails.cache_into_dirs = c_options->thumbnails.cache_into_dirs;
 	options->thumbnails.fast = c_options->thumbnails.fast;
@@ -287,7 +295,6 @@
 	options->image.read_buffer_size = c_options->image.read_buffer_size;
 	options->image.idle_read_loop_count = c_options->image.idle_read_loop_count;
 
-	options->thumbnails.quality = c_options->thumbnails.quality;
 	options->image.zoom_quality = c_options->image.zoom_quality;
 
 	options->image.zoom_increment = c_options->image.zoom_increment;