| Summary: | KDialog shows file selector instead of folder selector | ||
|---|---|---|---|
| Product: | [Applications] kdialog | Reporter: | Grósz Dániel <groszdanielpub> |
| Component: | general | Assignee: | Brad Hards <bradh> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bertronika, oded |
| Priority: | NOR | ||
| Version First Reported In: | 23.04.3 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/utilities/kdialog/-/commit/7b20cb0450bb00bb555a44349d914e88cc633a41 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Screenshot | ||
|
Description
Grósz Dániel
2023-07-27 19:54:52 UTC
The change from directory selector dialog to a file selector dialog was done in this commit: https://invent.kde.org/utilities/kdialog/-/commit/633667a373a690e636c6d7c231c0d9700f62473b The commit comment doesn't really explain the reason for the change - as far as I can tell, KDirSelectDialog is still a thing that exists. There are two issues here: 1. the change of UI to something that is arguably less appropriate. 2. If the user wants to accept the default - there's no longer an easy way to do that. A possibly relevant merge request was started @ https://invent.kde.org/utilities/kdialog/-/merge_requests/29 It looks like KDirSelectDialog was in KDELibs4Support. (In reply to Grósz Dániel from comment #3) > It looks like KDirSelectDialog was in KDELibs4Support. It is available in plasma-integration - which is installed on my system, but it doesn't have a `dev` package (in Neon), so I don't know how to get the development files. Correction: the problem wasn't where I pointed at, but in https://invent.kde.org/utilities/kdialog/-/merge_requests/17, which the new MR fixes. Update on the MR: it got two reviews and an approval. Now just waiting for someone to click the "Merge" button. Git commit 7b20cb0450bb00bb555a44349d914e88cc633a41 by Albert Astals Cid, on behalf of Oded Arbel. Committed on 05/09/2023 at 22:37. Pushed by aacid into branch 'master'. Fixes bug 472715: use Qt directory selector to select an existing directory Unlike what I said in the connected bug report, the problem was not in the removal of KDirSelectDialog but in the incorrect addition of `setFileMode()`. I went a bit back and forth on the minimal fix (I should have tested more), and I apologize for the noise. Hopefully you can accept this minimal change quickly. M +1 -1 src/kdialog.cpp https://invent.kde.org/utilities/kdialog/-/commit/7b20cb0450bb00bb555a44349d914e88cc633a41 |