summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/terminal-window.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index bcae49d..51468df 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -3883,8 +3883,7 @@ clipboard_uris_received_cb (GtkClipboard *clipboard,
}
/* This potentially modifies the strings in |uris| but that's ok */
- if (data->uris_as_paths)
- terminal_util_transform_uris_to_quoted_fuse_paths (uris);
+ terminal_util_transform_uris_to_quoted_fuse_paths (uris);
text = terminal_util_concat_uris (uris, &len);
vte_terminal_feed_child (VTE_TERMINAL (data->screen), text, len);
@@ -3907,7 +3906,7 @@ clipboard_targets_received_cb (GtkClipboard *clipboard,
return;
}
- if (gtk_targets_include_uri (targets, n_targets))
+ if (data->uris_as_paths && gtk_targets_include_uri (targets, n_targets))
{
gtk_clipboard_request_uris (clipboard,
(GtkClipboardURIReceivedFunc) clipboard_uris_received_cb,