[ocrfeeder] Convert the setting to bool method for the improve column detection
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Convert the setting to bool method for the improve column detection
- Date: Tue, 27 Jul 2010 22:14:23 +0000 (UTC)
commit 02fe799a22e6f0e4b439396f9fd9c33803574557
Author: Joaquim Rocha <jrocha igalia com>
Date: Tue Jul 13 18:33:00 2010 +0200
Convert the setting to bool method for the improve column detection
studio/configuration.py | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/studio/configuration.py b/studio/configuration.py
index da82ed7..76b2b60 100644
--- a/studio/configuration.py
+++ b/studio/configuration.py
@@ -382,12 +382,7 @@ class ConfigurationManager(object):
def getImproveColumnDetection(self):
improve = self.getConf(self.IMPROVE_COLUMN_DETECTION)
- if type(improve) == str:
- if improve == 'True':
- improve = True
- else:
- improve = False
- return improve
+ return self.__convertBoolSetting(improve)
def setColumnMinWidth(self, column_min_width):
self.setConf(self.COLUMN_MIN_WIDTH, column_min_width)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]