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)"""
|
self.ui.comboBoxMaxCores.setCurrentIndex(5)"""
|
||||||
|
|
||||||
# SMTP & POP3 tab
|
# SMTP & POP3 tab
|
||||||
self.ui.checkBoxEnableSMTPPOP3Servers.setChecked(
|
try:
|
||||||
shared.config.getboolean('bitmessagesettings', 'smtppop3enable'))
|
self.ui.checkBoxEnableSMTPPOP3Servers.setChecked(
|
||||||
|
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')))
|
||||||
|
|
|
@ -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()
|
|
||||||
|
|
Reference in New Issue
Block a user