Skip to content

Selecting *.* on windows causes it to use the last file format instead #101

Description

@matcool

Compilation Environment

  • OS: Windows 10
  • Compiler: MSVC 2019
  • Build directory used: cmake
  • Have I attempted to reproduce the problem on the devel branch? Yes

Describe the bug

nfdchar_t* path = nullptr;
auto result = NFD_SaveDialog("mp4;mkv;webm", nullptr, &path);
if (result == NFD_OKAY) {
    std::cout << "Selected path is: " << path << std::endl;
    free(path);
}

This will create a file dialog with 4 options, *.mp4, *.mkv, *.webm and *.*
The first three work fine, however, picking *.* will append .webm to the path instead of not appending anything

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions