application/davcontroller.c

changeset 95
e92c72705da4
parent 93
5ee236155955
child 97
5a3d27b8e6b0
--- a/application/davcontroller.c	Wed Nov 27 17:14:57 2024 +0100
+++ b/application/davcontroller.c	Wed Nov 27 18:45:08 2024 +0100
@@ -44,6 +44,7 @@
 DavBrowser* davbrowser_create(UiObject *toplevel) {
     DavBrowser *doc = ui_document_new(sizeof(DavBrowser));
     UiContext *ctx = ui_document_context(doc);
+    doc->window = toplevel;
     doc->ctx = ctx;
 
     doc->navigation_stack = cxLinkedListCreateSimple(CX_STORE_POINTERS);
@@ -468,6 +469,7 @@
     DavFileUpload *upload = dav_upload_create(browser, dialog, files);
     transfer_window_init(dialog, action_upload_cancel);
     dav_upload_start(upload);
+    application_register_transfer(&upload->trans);
 }
 
 void davbrowser_download(UiObject *ui, DavBrowser *browser, DavResource *reslist, const char *local_path) {
@@ -478,6 +480,7 @@
     DavFileDownload *download = dav_download_create(browser, dialog, reslist, local_path);
     transfer_window_init(dialog, action_download_cancel);
     dav_download_start(download);
+    application_register_transfer(&download->trans);
 }
 
 

mercurial