Commit 6e42eb12 authored by Carlos Soriano's avatar Carlos Soriano Committed by Matthias Clasen

gtkplacessidebar: Don't change location if clicked on eject button

Currently we change the current location if we click the eject button of
a mount.

Check whether the user actually clicked the eject button and don't
change location in that case.
parent 57121ffe
......@@ -3442,11 +3442,17 @@ bookmarks_row_activated_cb (GtkWidget *widget,
GtkTreeIter iter;
GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget));
GtkTreePath *dummy;
if (!gtk_tree_model_get_iter (model, &iter, path))
open_selected_bookmark (sidebar, model, &iter, 0);
dummy = NULL;
if (!clicked_eject_button (sidebar, &dummy))
open_selected_bookmark (sidebar, model, &iter, 0);
gtk_tree_path_free (dummy);
static gboolean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment