bridge: fixed newAlert parameters order

This commit is contained in:
Goffi 2010-12-27 21:56:12 +01:00
commit 2c9364addf

View file

@ -204,11 +204,11 @@ class QuickApp():
self.current_action_ids_cb = {}
self.chat_wins[win.short].printMessage(sender, msg, profile)
def newAlert(self, msg, title, type, profile):
def newAlert(self, msg, title, alert_type, profile):
if not self.check_profile(profile):
return
assert type in ['INFO','ERROR']
self.showDialog(unicode(msg),unicode(title),type.lower())
assert alert_type in ['INFO','ERROR']
self.showDialog(unicode(msg),unicode(title),alert_type.lower())
def setStatusOnline(self, online=True):