|
|
|
@ -288,6 +288,10 @@ class App(QMainWindow): |
|
|
|
|
# Returns username, instance |
|
|
|
|
return self.acctComboBox.currentText().split('@')[1], self.acctComboBox.currentText().split('@')[2] |
|
|
|
|
|
|
|
|
|
def badLogin(self, name): |
|
|
|
|
self.Err.showMessage("Bad login info for: "+name) |
|
|
|
|
self.newAcctDialog() |
|
|
|
|
|
|
|
|
|
def newAcctDialog(self): |
|
|
|
|
dialog = LoginDialog(self) |
|
|
|
|
dialog.getInput(self.initAcct) |
|
|
|
@ -1403,7 +1407,11 @@ class RegisterThread(threading.Thread): |
|
|
|
|
|
|
|
|
|
def run(self): |
|
|
|
|
self.acct.register() |
|
|
|
|
self.acct.login() |
|
|
|
|
try: |
|
|
|
|
self.acct.login() |
|
|
|
|
except ValueError: |
|
|
|
|
ex._eventloop.call_soon_threadsafe(ex.badLogin, self.acct.username+'@'+self.acct.instance) |
|
|
|
|
return |
|
|
|
|
NotifThread(self.acct).start() |
|
|
|
|
self.acct.setChatUpdate(ex.handlePleromaEvent) |
|
|
|
|
self.callback(self.acct) |
|
|
|
|