fixing bug for new configs

This commit is contained in:
Chuck 2013-07-05 13:55:40 +07:00
parent a94f71a240
commit fbe59c409d
2 changed files with 9 additions and 5 deletions

View File

@ -2771,8 +2771,12 @@ class settingsDialog(QtGui.QDialog):
self.ui.comboBoxMaxCores.setCurrentIndex(5)""" self.ui.comboBoxMaxCores.setCurrentIndex(5)"""
# SMTP & POP3 tab # SMTP & POP3 tab
try:
self.ui.checkBoxEnableSMTPPOP3Servers.setChecked( self.ui.checkBoxEnableSMTPPOP3Servers.setChecked(
shared.config.getboolean('bitmessagesettings', 'smtppop3enable')) shared.config.getboolean('bitmessagesettings', 'smtppop3enable'))
except:
self.ui.checkBoxEnableSMTPPOP3Servers.setChecked(False)
try: try:
self.ui.lineEditSMTPPort.setText( self.ui.lineEditSMTPPort.setText(
str(shared.config.getint('bitmessagesettings', 'smtpport'))) str(shared.config.getint('bitmessagesettings', 'smtpport')))

View File

@ -1,6 +1,7 @@
import asyncore import asyncore
import shared import shared
import threading import threading
import time
class asyncoreThread(threading.Thread): class asyncoreThread(threading.Thread):
@ -14,6 +15,5 @@ class asyncoreThread(threading.Thread):
while True: while True:
asyncore.loop(timeout=1) # Despite the horrible parameter name, this function will not timeout until all channels are closed. asyncore.loop(timeout=1) # Despite the horrible parameter name, this function will not timeout until all channels are closed.
shared.printLock.acquire() time.sleep(1)
print("all asyncore modules dead!")
shared.printLock.release()