summaryrefslogtreecommitdiff
path: root/thunar
diff options
context:
space:
mode:
authorAlexander Schwinn <alexxcons@xfce.org>2022-02-13 21:42:39 +0100
committerAlexander Schwinn <alexxcons@xfce.org>2022-02-13 21:43:02 +0100
commit5bb2098cc8a531284aed573bf2921302f4ac5ac6 (patch)
tree30263d6d8ee818ffacddeb37245d4542ca2b0a46 /thunar
parentf078093fbbaef0ac16eebc7aaad2793b9cdf1d01 (diff)
downloadthunar-5bb2098cc8a531284aed573bf2921302f4ac5ac6.tar.gz
Dont reload the view when text is copied (Issue #706)
Diffstat (limited to 'thunar')
-rw-r--r--thunar/thunar-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index a8fb2d7c..67deb5c0 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -1810,7 +1810,11 @@ thunar_window_clipboard_manager_changed (GtkWidget *widget)
{
ThunarWindow *window = THUNAR_WINDOW (widget);
- thunar_window_reload (window, FALSE);
+ /* check if the content actually can be pasted into thunar,
+ * in order to do not trigger if just some text is copied.
+ */
+ if (thunar_clipboard_manager_get_can_paste (window->clipboard))
+ thunar_window_reload (window, FALSE);
}