changeset 1074:ba2a41f053e6

Let Create thumbnails start in current directory (fallback to home directory if not available) as requested by Marcin Zajaczkowski (feature request 2166691).
author zas_
date Wed, 22 Oct 2008 19:56:29 +0000
parents 577d726e32f0
children 578a27d20b47
files src/cache_maint.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cache_maint.c	Mon Oct 20 21:00:18 2008 +0000
+++ b/src/cache_maint.c	Wed Oct 22 19:56:29 2008 +0000
@@ -15,6 +15,7 @@
 
 #include "cache.h"
 #include "filedata.h"
+#include "layout.h"
 #include "thumb.h"
 #include "thumb_standard.h"
 #include "ui_fileops.h"
@@ -1175,7 +1176,10 @@
 
 static void cache_manager_render_cb(GtkWidget *widget, gpointer data)
 {
-	cache_manager_render_dialog(widget, homedir());
+	const gchar *path = layout_get_path(NULL);
+
+	if (!path || !*path) path = homedir();
+	cache_manager_render_dialog(widget, path);
 }
 
 static void cache_manager_metadata_clean_cb(GtkWidget *widget, gpointer data)