Skip to content
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 crash when multiple share dialogs were shown #11908

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

erikjv
Copy link
Collaborator

@erikjv erikjv commented Sep 26, 2024

Fixes: #11673

@erikjv erikjv self-assigned this Sep 26, 2024
src/gui/owncloudgui.cpp Show resolved Hide resolved
connect(w, &QObject::destroyed, this, &ownCloudGui::slotRemoveDestroyedShareDialogs);
qCInfo(lcApplication) << "Opening new share dialog" << sharePath << localPath << maxSharingPermissions;
if (_shareDialog) {
_shareDialog->close();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should also work if we stack them, so should add another one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, just 1 sharing dialog for the latest. If a user requested one before but never used it to copy the link, then 🤷, apparently it wasn't important.

@erikjv
Copy link
Collaborator Author

erikjv commented Sep 30, 2024

Note: document that this is oC10 only functionality.

@TheOneRing TheOneRing merged commit a9dc932 into master Oct 1, 2024
4 of 5 checks passed
@TheOneRing TheOneRing deleted the work/fix-share-dialog-crash branch October 1, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

client sometime crashes in OCC::AccountSettings::addModalLegacyDialog at src/gui/accountsettings.cpp:559
2 participants