Added patch by Jan to address crash at startup on ArchLinux 64 bit
This commit is contained in:
@@ -82,6 +82,7 @@ void PlacesBrowser::refreshPlacesList () {
|
||||
// append home directory
|
||||
Glib::RefPtr<Gio::File> hfile = Gio::File::create_for_path (Glib::get_home_dir ());
|
||||
if (hfile) {
|
||||
try {
|
||||
Glib::RefPtr<Gio::FileInfo> info = safe_query_file_info (hfile);
|
||||
if (info) {
|
||||
Gtk::TreeModel::Row newrow = *(placesModel->append());
|
||||
@@ -91,10 +92,13 @@ void PlacesBrowser::refreshPlacesList () {
|
||||
newrow[placesColumns.type] = 4;
|
||||
newrow[placesColumns.rowSeparator] = false;
|
||||
}
|
||||
} catch (Gio::Error&) { /* This will be thrown if the path doesn't exist */ }
|
||||
}
|
||||
|
||||
// append pictures directory
|
||||
hfile = Gio::File::create_for_path (Glib::get_user_special_dir (G_USER_DIRECTORY_PICTURES));
|
||||
if (hfile) {
|
||||
try {
|
||||
Glib::RefPtr<Gio::FileInfo> info = safe_query_file_info (hfile);
|
||||
if (info) {
|
||||
Gtk::TreeModel::Row newrow = *(placesModel->append());
|
||||
@@ -104,6 +108,7 @@ void PlacesBrowser::refreshPlacesList () {
|
||||
newrow[placesColumns.type] = 4;
|
||||
newrow[placesColumns.rowSeparator] = false;
|
||||
}
|
||||
} catch (Gio::Error&) { /* This will be thrown if the path doesn't exist */ }
|
||||
}
|
||||
|
||||
if (placesModel->children().size()>0) {
|
||||
|
Reference in New Issue
Block a user