diff --git a/src/roster_window.py b/src/roster_window.py
index 47785c5642709bdb4f2ba90da3f608889661711d..b2d581480d8d4941bcd7dcc8298fe08d328e26b2 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -4088,7 +4088,7 @@ class RosterWindow:
 			contact.groups.remove(group)
 		self.remove_contact(contact, account)
 
-	def _on_send_files(self, account, jid, uri):
+	def _on_send_files(self, widget, account, jid, uri):
 		c = gajim.contacts.get_contact_with_highest_priority(account, jid)
 		uri_splitted = uri.split() # we may have more than one file dropped
 		for uri in uri_splitted: