[ocrfeeder] widgetPresenter: Make setHasImages set the presence of select and content boxes when it's set to fal



commit 11e513ca9f4f22599d7e0d6a2a0c7a2082c664b0
Author: Joaquim Rocha <jrocha igalia com>
Date:   Mon Jun 28 11:12:47 2010 +0200

    widgetPresenter: Make setHasImages set the presence of select and content boxes when it's set to false

 studio/widgetPresenter.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/studio/widgetPresenter.py b/studio/widgetPresenter.py
index a238707..4d86e9b 100644
--- a/studio/widgetPresenter.py
+++ b/studio/widgetPresenter.py
@@ -207,6 +207,9 @@ class MainWindow:
                    'OCRFeederDetection', 'EditPage', 'ClearProject',
                    'AppendProject', 'ZoomFit']
         self.__setActionsSensitiveness(actions, has_images)
+        if not has_images:
+            self.setHasSelectedBoxes(False)
+            self.setHasContentBoxes(False)
 
     def setHasSelectedBoxes(self, has_selected_boxes = True):
         if not self.action_group:



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