Commit 9b985af9 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

do not activate the paste command if the file view is not focused

this fixes a shortcut conflict when pressing control+v in a text
entry that causes the paste command to be activated.
parent cc121ff8
......@@ -349,6 +349,9 @@ gth_browser_activate_action_edit_paste (GtkAction *action,
{
PasteData *paste_data;
if (gtk_window_get_focus (GTK_WINDOW (browser)) != gth_browser_get_file_list_view (browser))
return;
paste_data = g_new0 (PasteData, 1);
paste_data->browser = g_object_ref (browser);
paste_data->destination = g_object_ref (gth_browser_get_location_data (browser));
......
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