[ocrfeeder] widgetModeler: Select the first image (if it exists) when one page is deleted



commit 4c840924f79aecab3defef029e8558b2e47eba20
Author: Joaquim Rocha <jrocha igalia com>
Date:   Mon Jun 28 11:09:53 2010 +0200

    widgetModeler: Select the first image (if it exists) when one page is deleted

 studio/widgetModeler.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/studio/widgetModeler.py b/studio/widgetModeler.py
index 111999c..ba934dc 100644
--- a/studio/widgetModeler.py
+++ b/studio/widgetModeler.py
@@ -151,7 +151,9 @@ class SourceImagesSelectorIconView(gtk.IconView):
         if len(selected_items):
             selected_item_path = selected_items[0]
             self.source_images_selector.removeIter(selected_item_path)
-    
+            if not self.source_images_selector.isEmpty():
+                self.select_path(0)
+
     def clear(self):
         self.source_images_selector.clear()
     



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