small filetree misbehavior with bookmark to file
@pborelli
Submitted by Paolo Borelli Link to original bug (#366320)
Description
<pbor>
hey jesse
<pbor>
how goes?
<pbor>
I found a pretty funny bug with the filetree
<jessevdk>
a bit busy, but who isn't :)
<jessevdk>
what is it?
<pbor>
add a bookmark to a file (not a dir) in the filechooser
<pbor>
(not sure why that is allowed, but still...)
<pbor>
now click on it from the bookmarks page in the filetree
<pbor>
instead of opening the file, it tries to use it as a dir
<jessevdk>
hmm, I can't add a file as a bookmark in the filechooser
<jessevdk>
yep, I didn't test the bookmarks for directory because I didn't think it was possible to have anything else in there
<pbor>
I am not sure I I got one in there to be honest
<jessevdk>
I can add it manually
<pbor>
yeah
<pbor>
apart from that, there is a bug which this thing exposed
<jessevdk>
okay, well I just get an error message that it's not a directory
<pbor>
opening the file as a dir obviously gives an error
<pbor>
yep
<pbor>
but then it puts it in the store as a dir
<pbor>
I mean if you press "up"
<jessevdk>
indeed
<jessevdk>
that's weird
<pbor>
and you don't have the real file listed
<jessevdk>
oh well, not that weird, given how filetree works
<pbor>
yeah
<jessevdk>
could you file a bug, it's quite easy to fix I think
<pbor>
nothing critical or common
<pbor>
I just stumbled on it and thought it was funny
<pbor>
sure, I'll file one
<jessevdk>
hehe
<pbor>
and since I am lazy I'll just cut and paste this log
<jessevdk>
sure