Fixed crash on start on some Windows configurations

see issue 1022
This commit is contained in:
Oliver Duis
2011-10-11 17:14:37 +02:00
parent 29f8cb0aaf
commit cc437409aa
5 changed files with 25 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ void PlacesBrowser::refreshPlacesList () {
}
// append pictures directory
hfile = Gio::File::create_for_path (Glib::get_user_special_dir (G_USER_DIRECTORY_PICTURES));
hfile = Gio::File::create_for_path (safe_get_user_picture_dir());
if (hfile && hfile->query_exists()) {
try {
Glib::RefPtr<Gio::FileInfo> info = safe_query_file_info (hfile);