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

Backport (2-0-x) - Fix empty description when only one extension is given (GetFileTypesFromAcceptType) #12963

merged 1 commit into from May 16, 2018
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Diff settings


Just for now

@@ -168,10 +168,10 @@ file_dialog::Filters GetFileTypesFromAcceptType(
if (valid_type_count > 1 ||
(valid_type_count == 1 && description.empty() && extensions.size() > 1))
if (valid_type_count > 1 || (valid_type_count == 1 && description.empty()))
description = "Custom Files";
filters[0].first = description;
for (const auto& extension : extensions) {
ProTip! Use n and p to navigate between commits in a pull request.