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

Wrong usage of QMessageBox::finished #7874

Closed
TheOneRing opened this issue May 26, 2020 · 3 comments
Closed

Wrong usage of QMessageBox::finished #7874

TheOneRing opened this issue May 26, 2020 · 3 comments
Milestone

Comments

@TheOneRing
Copy link
Member

QMessageBox::finished also reports that the prompt was accepted when the user closed the dialog using the ❌ button ....
See: #7710

@TheOneRing TheOneRing added this to the 2.6.3 milestone May 26, 2020
@TheOneRing
Copy link
Member Author

src/gui/accountsettings.cpp:    connect(msgBox, &QMessageBox::finished, msgBox, [this, msgBox, folder](int result) {
src/gui/generalsettings.cpp:    connect(msgBox, &QMessageBox::finished, msgBox, [this, channel, msgBox](int result) {
src/gui/sharelinkwidget.cpp:    connect(messageBox, &QMessageBox::finished, this,

@TheOneRing
Copy link
Member Author

TheOneRing commented May 26, 2020

ShareLinkWidget::confirmAndDeleteShare does it right

connect(messageBox, &QMessageBox::finished, this,
        [messageBox, yesButton, share]() {
        if (messageBox->clickedButton() == yesButton)
            share->deleteShare();
    });

TheOneRing added a commit to TheOneRing/client that referenced this issue May 26, 2020
TheOneRing added a commit to TheOneRing/client that referenced this issue May 26, 2020
@TheOneRing
Copy link
Member Author

Testing:

  • Enable experimental feature? in settings
  • Disable virtual file support? in account setting
  • Enable technical preview feature in wizard

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

No branches or pull requests

1 participant