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

Use an appropriate method to show modal dialog #16809

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

glassez
Copy link
Member

@glassez glassez commented Apr 4, 2022

No description provided.

@glassez glassez added the GUI GUI-related issues/changes label Apr 4, 2022
@glassez glassez added this to the 4.5.0 milestone Apr 4, 2022
Chocobo1
Chocobo1 previously approved these changes Apr 4, 2022
@@ -353,7 +352,7 @@ void TransferListWidget::setSelectedTorrentsLocation()
}
});

fileDialog->show();
fileDialog->open();
Copy link
Member

@Chocobo1 Chocobo1 Apr 4, 2022

Choose a reason for hiding this comment

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

I think this would be the correct usage pattern regardless of fixing anything.
There is another instance of this at MainWindow::askRecursiveTorrentDownloadConfirmation(): confirmBox->show(); would you mind change it too?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this would be the correct usage pattern regardless if it fixes anything.

👍

There is another instance of this at MainWindow::askRecursiveTorrentDownloadConfirmation(): confirmBox->show(); would you mind change it too?

I will do it as soon as the next window of free time appears.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will do it as soon as the next window of free time appears.

Done.

Copy link
Member

@sledgehammer999 sledgehammer999 left a comment

Choose a reason for hiding this comment

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

Now clicking Set location... from the context menu on a torrent does open a file dialog on macOS without making the mainwindow unresponsive to user input (after the dialog is closed).

Also I can't reproduce the crash on Win 10 mentioned with steps in #15779 (comment)

@xavier2k6
Copy link
Member

Also I can't reproduce the crash on Win 10 mentioned with steps in #15779 (comment)

That "crash" was fixed via linked PR #16158

@sledgehammer999
Copy link
Member

That "crash" was fixed via linked PR #16158

I know. I am just making sure that it didn't resurface with this PR.

@glassez glassez merged commit 4efece4 into qbittorrent:master Apr 5, 2022
@glassez glassez deleted the set-location branch April 5, 2022 04:26
glassez added a commit to glassez/qBittorrent that referenced this pull request Apr 5, 2022
glassez added a commit that referenced this pull request Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI GUI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants