-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TUS progress reporting #9437
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder which of these changes actually fixed the issue. Do you have to start the job before connecting signals?
I need to start the job in order to have a reply ready.... |
Thinking about it, this is still wrong if the job gets restarted.... :sigh: |
AAAAA thats wrong all over the place... |
Please check whether I overlooked one |
12-13 13:35:17:462 [ warning default ]: QObject::connect(QNetworkReply, OCC::UploadDevice): invalid null parameter 12-13 13:35:17:462 [ warning default ]: QObject::connect(QNetworkReply, OCC::PropagateUploadFileTUS): invalid null parameter Fixes: #9121
@@ -427,16 +430,22 @@ class OWNCLOUDSYNC_EXPORT SimpleNetworkJob : public AbstractNetworkJob | |||
|
|||
void start() override; | |||
|
|||
void addNewReplyHook(std::function<void(QNetworkReply *)> &&hook); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might use a typedef here, DRY.
Kudos, SonarCloud Quality Gate passed! |
Fixes: #9121