forked from openlp/openlp
removed print statement
This commit is contained in:
parent
c58a6c801d
commit
2c2268a326
@ -173,7 +173,6 @@ class OpenLP(QtGui.QApplication):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def hookException(self, exctype, value, traceback):
|
def hookException(self, exctype, value, traceback):
|
||||||
print ''.join(format_exception(exctype, value, traceback))
|
|
||||||
if not hasattr(self, u'mainWindow'):
|
if not hasattr(self, u'mainWindow'):
|
||||||
log.exception(''.join(format_exception(exctype, value, traceback)))
|
log.exception(''.join(format_exception(exctype, value, traceback)))
|
||||||
return
|
return
|
||||||
|
@ -282,7 +282,7 @@ class Settings(QtCore.QSettings):
|
|||||||
default_value = Settings.__default_settings__[self.group() + u'/' + key]
|
default_value = Settings.__default_settings__[self.group() + u'/' + key]
|
||||||
else:
|
else:
|
||||||
default_value = Settings.__default_settings__[key]
|
default_value = Settings.__default_settings__[key]
|
||||||
setting = super(Settings, self).value(key, default_value)
|
setting = super(Settings, self).value(key, default_value)
|
||||||
# On OS X (and probably on other platforms too) empty value from QSettings is represented as type
|
# On OS X (and probably on other platforms too) empty value from QSettings is represented as type
|
||||||
# PyQt4.QtCore.QPyNullVariant. This type has to be converted to proper 'None' Python type.
|
# PyQt4.QtCore.QPyNullVariant. This type has to be converted to proper 'None' Python type.
|
||||||
if isinstance(setting, QtCore.QPyNullVariant) and setting.isNull():
|
if isinstance(setting, QtCore.QPyNullVariant) and setting.isNull():
|
||||||
|
Loading…
Reference in New Issue
Block a user