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)"""
# SMTP & POP3 tab
try:
self.ui.checkBoxEnableSMTPPOP3Servers.setChecked(
shared.config.getboolean('bitmessagesettings', 'smtppop3enable'))
except:
self.ui.checkBoxEnableSMTPPOP3Servers.setChecked(False)
try:
self.ui.lineEditSMTPPort.setText(
str(shared.config.getint('bitmessagesettings', 'smtpport')))

View File

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