diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c index 82ce54864a8b3f146a361f6541ff31a026aca733..36021d10e4c314adbdde6847c6dc0732d277bf38 100644 --- a/thunar/thunar-shortcuts-model.c +++ b/thunar/thunar-shortcuts-model.c @@ -998,15 +998,18 @@ thunar_shortcuts_model_shortcut_network (ThunarShortcutsModel *model) shortcut->name = g_strdup (_("NETWORK")); thunar_shortcuts_model_add_shortcut (model, shortcut); - /* the browse network entry */ - shortcut = g_slice_new0 (ThunarShortcut); - shortcut->group = THUNAR_SHORTCUT_GROUP_NETWORK_DEFAULT; - shortcut->name = g_strdup (_("Browse Network")); - shortcut->tooltip = g_strdup (_("Browse local network connections")); - shortcut->location = g_file_new_for_uri ("network://"); - shortcut->gicon = g_themed_icon_new ("network-workgroup"); - shortcut->hidden = thunar_shortcuts_model_get_hidden (model, shortcut); - thunar_shortcuts_model_add_shortcut (model, shortcut); + /* append the browse network entry if it is supported */ + if (thunar_g_vfs_is_uri_scheme_supported ("network")) + { + shortcut = g_slice_new0 (ThunarShortcut); + shortcut->group = THUNAR_SHORTCUT_GROUP_NETWORK_DEFAULT; + shortcut->name = g_strdup (_("Browse Network")); + shortcut->tooltip = g_strdup (_("Browse local network connections")); + shortcut->location = g_file_new_for_uri ("network://"); + shortcut->gicon = g_themed_icon_new ("network-workgroup"); + shortcut->hidden = thunar_shortcuts_model_get_hidden (model, shortcut); + thunar_shortcuts_model_add_shortcut (model, shortcut); + } }