[f-spot] Reload preview pixmap to default if empty collection is found



commit dad45c09ca1332fa44d488790fcf5950af5c36ae
Author: Paul Wellner Bou <paul purecodes org>
Date:   Thu May 20 14:36:01 2010 +0200

    Reload preview pixmap to default if empty collection is found
    
    https://bugzilla.gnome.org/show_bug.cgi?id=619171

 src/ImportCommand.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ImportCommand.cs b/src/ImportCommand.cs
index 7511d4d..49b00ce 100644
--- a/src/ImportCommand.cs
+++ b/src/ImportCommand.cs
@@ -741,6 +741,9 @@ public class ImportCommand : GladeDialog
 
 		AllowFinish = true;
 		collection.AddAll (info);
+		
+		if(collection.Count == 0)
+			photo_view.Pixbuf = GtkUtil.TryLoadIcon (FSpot.Global.IconTheme, "f-spot", 128, (Gtk.IconLookupFlags)0);
 
 		return false;
 	}



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