[ocrfeeder] widgetPresenter: Make setHasImages set the presence of select and content boxes when it's set to fal
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] widgetPresenter: Make setHasImages set the presence of select and content boxes when it's set to fal
- Date: Mon, 28 Jun 2010 09:37:17 +0000 (UTC)
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]