better presentation for register new account

- error message when no user, pass or server given
- server is now automatically updated when jid change in connection category
This commit is contained in:
Goffi 2009-12-01 06:07:20 +01:00
commit 84cd3c6ea2

View file

@ -306,6 +306,7 @@ class MainWindow(wx.Frame, QuickApp):
if type == "SUPPRESS":
self.current_action_ids.remove(id)
elif type == "SUCCESS":
self.current_action_ids.remove(id)
dlg = wx.MessageDialog(self, data["message"],
'Success',
wx.OK | wx.ICON_INFORMATION
@ -313,6 +314,7 @@ class MainWindow(wx.Frame, QuickApp):
dlg.ShowModal()
dlg.Destroy()
elif type == "ERROR":
self.current_action_ids.remove(id)
dlg = wx.MessageDialog(self, data["message"],
'Error',
wx.OK | wx.ICON_ERROR