[ocrfeeder] Fix Document menu items not being properly enabled
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Fix Document menu items not being properly enabled
- Date: Mon, 28 Jun 2010 09:37:07 +0000 (UTC)
commit a3f7b46fad2036182eea82ad6b4b416849606672
Author: Joaquim Rocha <jrocha igalia com>
Date: Thu Jun 24 18:28:13 2010 +0200
Fix Document menu items not being properly enabled
When the document was automatically recognized, the menu items under Document
menu weren't being updated. This patch updates these and other main window's
controls after performing OCR for any editor.
studio/widgetModeler.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/studio/widgetModeler.py b/studio/widgetModeler.py
index 6028ffa..111999c 100644
--- a/studio/widgetModeler.py
+++ b/studio/widgetModeler.py
@@ -292,6 +292,7 @@ class ImageReviewer:
editor.performClassification(engine)
if editor.box_editor.getType() == IMAGE_TYPE:
editor.box_editor.setText('')
+ self.updateMainWindow()
def __getAllDataBoxes(self):
boxes = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]