After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 443027 - Wrong library folder sometimes selected
Wrong library folder sometimes selected
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: User Interface
0.12.1
Other Linux
: Normal normal
: 2.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-01 20:34 UTC by Ilya Konstantinov
Modified: 2007-07-10 18:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (492 bytes, patch)
2007-06-01 20:36 UTC, Ilya Konstantinov
committed Details | Review

Description Ilya Konstantinov 2007-06-01 20:34:36 UTC
Sometimes (apparently a race condition), the wrong folder gets selected as the library folder in the Preferences dialog. In my case, instead of /home/user/Music, /home/user was selected.
Comment 1 Ilya Konstantinov 2007-06-01 20:36:44 UTC
Created attachment 89206 [details] [review]
Patch

This patch solves this bug by using SetCurrentFolder instead of SetFilename on the FileChooserButton control.

I guess this is due to the fact that the FileChooserButton loads its list of files asynchronously, and our SetFilename didn't always make it on time for the file list to be loaded. (Yes, this appears to be a bug in Gtk+ but using SetCurrentFolder helps us avoid it anyway.)
Comment 2 Aaron Bockover 2007-07-10 18:01:01 UTC
Committed, thanks!