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

Allow paths in name entry of file dialog #964

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

tsujan
Copy link
Member

@tsujan tsujan commented Apr 20, 2024

A path can be absolute or relative and can be used with file opening and saving alike.

Also, two minor issues are revealed and fixed after this change:

  • A mistake is corrected in the logic of showing error message about nonexistent files.
  • An issue is fixed in updating accept button on changing directory.

NOTE: Although this isn't self-consistent, Qt's default file dialog supports it. It can also be useful when the path is already copied from somewhere. The extra code is kept to a minimum.

Closes #962

A path can be absolute or relative and can be used with file opening and saving alike.

Also, two minor issues are revealed and fixed after this change:

 * A mistake is corrected in the logic of showing error message about nonexistent files.
 * An issue is fixed in updating accept button on changing directory.

NOTE: Although this isn't self-consistent, Qt's default file dialog supports it. It can also be useful when the path is already copied from somewhere. The extra code is kept to a minimum.

Closes #962
@tsujan
Copy link
Member Author

tsujan commented May 21, 2024

@stefonarch
I've used it and found no problem since the last commit. Please check it whenever you find the time.

@stefonarch
Copy link
Member

I've used it some time now, didn't notice issues.

@tsujan tsujan merged commit 25507e9 into master May 23, 2024
@tsujan tsujan deleted the filedialog_filepath branch May 23, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allowing pasting of full path into "File name" entry?
2 participants