Summary: | file open dialog always shows places even if closed before | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | Martin Koller <kollix> |
Component: | general | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christoph |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Martin Koller
2010-12-28 23:10:51 UTC
Same problem in kate, KDE 4.8.0, openSuse 12.1 So you want that Kate/KWrite/Konqueror/Okular etc remember whether places should be shown or not? If you hide the places, how to get it back? Martin, I think this is rather a kdelibs issue, not specific to Kate, right? > If you hide the places, how to get it back? :-) In the same way I hid it: via the options menu or by pressing F9 > Martin, I think this is rather a kdelibs issue, not specific to Kate, right? In KFileDialog you can pass a special syntax for the startDir parameter, which already allows to store the last selected dir per application or globally http://api.kde.org/4.7-api/kdelibs-apidocs/kfile/html/classKFileWidget.html#a347b2860d7fbc35244ed0375bfd6e401 Checking with kolourpaint, I see that the shown/hidden components are saved and restored in the same way when I reopen the app again. So it seems to depend on how an app uses KFileDialog. In kolourpaint the usage is: KFileDialog fd(KUrl("kfiledialog:///dir/"), filter, this); In kolourpaint it is just the other way around for me: no places per default but you can show them and that is not remembered. Forwarding to kio, we just use the KEncodingFileDialog static helper functions. What version of kolourpaint did you test with ? If I test with KDE 4.9.2, I can hide or show the places pane (it is remembered only if you really open an image, not if you cancel the file open dialog) and it is remembered correctly between different invocations of the program. I see, I did not press "open" but cancel. And yes, with open it works. Still no idea what I should fix in kate, as we just use the static methods of the KEncodingFileDialog and there is nothing we can pass to let it save anything, or? Did you try it in the way I described in comment #3 ? http://api.kde.org/4.9-api/kdelibs-apidocs/kio/html/classKEncodingFileDialog.html#a6d8658a46999f53105c4347850bdbd41 Did not try but as I use the special "startDir" syntax also in kolourpaint, I assume that is the fact why it works there. The problem is I can't use that, as in Kate we want to enforce that the dialog starts in the given directory, or do I misunderstand the docs and I can have both (defined start directory and the wanted behavior?). whatever changed, the KDE4 version of kate now keeps the sidebar setting I chose also between program starts. The KDE5 version of kwrite does no longer have a sidebar (regression ? local setup problem?) I'm closing this now |