fixing bug for new configs
This commit is contained in:
parent
a94f71a240
commit
fbe59c409d
|
@ -2771,8 +2771,12 @@ class settingsDialog(QtGui.QDialog):
|
|||
self.ui.comboBoxMaxCores.setCurrentIndex(5)"""
|
||||
|
||||
# SMTP & POP3 tab
|
||||
self.ui.checkBoxEnableSMTPPOP3Servers.setChecked(
|
||||
shared.config.getboolean('bitmessagesettings', 'smtppop3enable'))
|
||||
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')))
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Reference in New Issue
Block a user