diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-10-29 22:43:54 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-11-19 12:38:38 -0500 |
commit | 96904b32e021cb88594226ca5f9c0569fba9ffe7 (patch) | |
tree | 8f345df09c705611fee3f60f71016c02c1f6173d | |
parent | 850b9de8327dac63e6a5c116cd7acca01152937a (diff) | |
download | nautilus-96904b32e021cb88594226ca5f9c0569fba9ffe7.tar.gz |
Format item for volumes disappeared
Trying to reproduce some problem with the Format... menuitem
on usb sticks in the sidebar, I found that the menuitem is gone
in 3.10 - it turns out GtkPlacesSidebar gives both a selected_item
and a selected_volume in some cases, therefore the conditions
need to be checked in two independent ifs instead of the current
if ... else if ...
https://bugzilla.gnome.org/show_bug.cgi?id=711115
-rw-r--r-- | src/nautilus-window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index 90313609e..8e24f4fc3 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -823,7 +823,8 @@ places_sidebar_populate_popup_cb (GtkPlacesSidebar *sidebar, gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); } - } else if (selected_volume) { + } + if (selected_volume) { if (should_show_format_command (selected_volume)) { item = gtk_menu_item_new_with_mnemonic (_("_Format…")); g_object_set_data_full (G_OBJECT (item), "nautilus-volume", |