[ocrfeeder/fixes: 3/3] Remove the warning dialog about the engines' arguments auto update



commit 8c1317475ceb2b78ba1f7bdff7d44204a5d053cc
Author: Joaquim Rocha <jrocha igalia com>
Date:   Sat Mar 31 20:25:07 2012 +0200

    Remove the warning dialog about the engines' arguments auto update
    
    As advised in gb#670953.

 src/ocrfeeder/studio/studioBuilder.py |   19 ++-----------------
 1 files changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/src/ocrfeeder/studio/studioBuilder.py b/src/ocrfeeder/studio/studioBuilder.py
index c0efda5..d4d5a84 100644
--- a/src/ocrfeeder/studio/studioBuilder.py
+++ b/src/ocrfeeder/studio/studioBuilder.py
@@ -448,24 +448,9 @@ class Studio:
     def __askForEnginesMigration(self):
         auto_update = self.engines_needing_update['auto']
         if auto_update:
-            names = []
             for migration in auto_update:
-                names.append(migration['engine'].name)
-            dialog = gtk.MessageDialog(self.main_window.window,
-                                       gtk.DIALOG_MODAL |
-                                       gtk.DIALOG_DESTROY_WITH_PARENT,
-                                       gtk.MESSAGE_WARNING,
-                                       buttons = gtk.BUTTONS_YES_NO)
-            message = _('The following engines\' arguments '
-                        'might need to be updated:\n  <b>%(engines)s</b> '
-                        '\nDo you want to update them automatically?') % \
-                        {'engines': '\n'.join(names)}
-            dialog.set_markup(message)
-            if dialog.run() == gtk.RESPONSE_YES:
-                for migration in auto_update:
-                    self.ocr_engines_manager.migrateEngine(migration['engine'],
-                                                    migration['configuration'])
-            dialog.destroy()
+                self.ocr_engines_manager.migrateEngine(migration['engine'],
+                                                       migration['configuration'])
 
         manual_update = self.engines_needing_update['manual']
         if manual_update:



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