Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Obtain extension from path when no mime type available #503

Merged
merged 1 commit into from
Feb 22, 2018

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented Feb 22, 2018

@darkdh darkdh self-assigned this Feb 22, 2018
Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

Verified fix; works great! 😄 👍

@bsclifton bsclifton added this to the 5.0.6 milestone Feb 22, 2018
@bsclifton bsclifton merged commit 3452f41 into master Feb 22, 2018
@bsclifton bsclifton deleted the download_dialog_ext branch February 22, 2018 15:58
bsclifton added a commit that referenced this pull request Feb 22, 2018
Obtain extension from path when no mime type available
@@ -139,7 +139,12 @@ void AtomDownloadManagerDelegate::OnDownloadPathGenerated(
if (path.empty()) {
std::vector<base::FilePath::StringType> extensions;
base::FilePath::StringType extension;
if (GetItemExtension(item, &extension)) {
if (!GetItemExtension(item, &extension)) {
extension = target_path.Extension();
Copy link
Collaborator

Choose a reason for hiding this comment

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

wouldn't it make more sense to put this code in GetItemExtension?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, good call. will do a follow up

bridiver pushed a commit that referenced this pull request Feb 22, 2018
Obtain extension from path when no mime type available
bsclifton added a commit that referenced this pull request Mar 1, 2018
Obtain extension from path when no mime type available
bsclifton added a commit that referenced this pull request Mar 1, 2018
Obtain extension from path when no mime type available
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save Torrent doesn't add torrent extension Save link as doesn't add file extension to save dialogue window
3 participants