Daniel Brötzmann pushed to branch mainwindow at gajim / gajim


Commits:
b7e368f9 by wurstsalat at 2021-08-17T21:10:24+02:00
Fix HTTP Upload tranfsers

- - - - -


1 changed file:

- gajim/gui_interface.py


Changes:

=====================================
gajim/gui_interface.py
=====================================
@@ -846,8 +846,8 @@ def _send_httpupload(self, chat_control, path):
         chat_control.add_file_transfer(transfer)
         client.get_module('HTTPUpload').start_transfer(transfer)
 
-    @staticmethod
-    def _on_http_upload_state_changed(transfer, _signal_name, state):
+    def _on_http_upload_state_changed(self, transfer, _signal_name, state):
+        # Note: This has to be a bound method in order to connect the signal
         if state.is_finished:
             uri = transfer.get_transformed_uri()
 
@@ -864,8 +864,8 @@ def _on_http_upload_state_changed(transfer, _signal_name, 
state):
             client = app.get_client(transfer.account)
             client.send_message(message)
 
-    @staticmethod
-    def _on_cancel_upload(transfer, _signal_name):
+    def _on_cancel_upload(self, transfer, _signal_name):
+        # Note: This has to be a bound method in order to connect the signal
         client = app.get_client(transfer.account)
         client.get_module('HTTPUpload').cancel_transfer(transfer)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/b7e368f9e4f266084c516237e70b44424ceaba9b

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/b7e368f9e4f266084c516237e70b44424ceaba9b
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to