-
Notifications
You must be signed in to change notification settings - Fork 816
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
Start file conflict resolve dialog asynchronous #2867
Conversation
src/gui/tray/ActivityListModel.cpp
Outdated
folder->scheduleThisFolderSoon(); | ||
} | ||
}); | ||
dialog->open(); |
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.
To be on the safe side I'd also force raising it and getting the focus. Since this dialog can't have a parent there's a slight chance it might "pop under" something else. You can use ownCloudGui::raiseDialog()
for that.
8835fb7
to
48af65e
Compare
src/gui/tray/ActivityListModel.cpp
Outdated
_currentConflictDialog->setLocalVersionFilename(conflictedPath); | ||
_currentConflictDialog->setRemoteVersionFilename(basePath); | ||
_currentConflictDialog->setAttribute(Qt::WA_DeleteOnClose); | ||
connect(_currentConflictDialog, &ConflictDialog::accepted, [folder]() { |
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.
For extra safety, folder
should be passed as third parameter of that connect just before the lambda. In case the folder object would be deleted before accepted is emitted it would thus disconnect automatically, otherwise it won't and you risk calling into a deleted object from the lambda.
48af65e
to
9f3da97
Compare
/rebase |
9f3da97
to
5d3d7a6
Compare
/rebase |
Fixes #2804 Signed-off-by: Felix Weilbach <[email protected]>
5d3d7a6
to
51d8cf8
Compare
AppImage file: Nextcloud-PR-2867-51d8cf8102adabf17b946c9991ef34c62be32153-x86_64.AppImage |
/backport to stable-3.1 |
Fixes #2804
Signed-off-by: Felix Weilbach [email protected]