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

File open dialog doesn't show lowercase .tpx files on GTK2/Linux #3

Closed
krystophny opened this issue Feb 19, 2019 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@krystophny
Copy link
Owner

krystophny commented Feb 19, 2019

Only files with uppercase .TpX extensions are treated by the open dialog on Linux. According to https://forum.lazarus.freepascal.org/index.php?topic=22074.0 the correct way to handle this would be

OpenDialog1.Filter :=
  {$ifdef LCLGtk2}
    '*.txt|*.[Tt][Xx][Tt]'; // Gtk2
  {$else}
    '*.txt|*.txt'; // win32/64 and Qt4
  {$endif}

For the save dialog in the future only lowercase .tpx extensions will be allowed to be consistent.

@krystophny krystophny changed the title File open dialog doesn' File open dialog doesn't show lowercase .tpx files on GTK2/Linux Feb 19, 2019
@krystophny krystophny self-assigned this Feb 19, 2019
@krystophny krystophny added the bug Something isn't working label Feb 19, 2019
@krystophny
Copy link
Owner Author

krystophny commented Feb 19, 2019

This is now fixed in 8bddd5e for v1.6. For picture files there is still a TODO in the code to make all extensions case-insensitive. Currently only lowercase extensions work on Linux/GTK2 for png, jpg etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant