summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 673932a..2695549 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1152,7 +1152,7 @@ terminal_window_update_size_to_menu (TerminalWindow *window)
static void
terminal_window_update_copy_sensitivity (TerminalScreen *screen,
- TerminalWindow *window)
+ TerminalWindow *window)
{
TerminalWindowPrivate *priv = window->priv;
GtkAction *action;
@@ -1166,8 +1166,7 @@ terminal_window_update_copy_sensitivity (TerminalScreen *screen,
action = gtk_action_group_get_action (priv->action_group, "EditCopy");
gtk_action_set_sensitive (action, can_copy);
- /* 24/07/2014 [email protected], sync to clibboard */
- if (priv->copy_selection)
+ if (can_copy && priv->copy_selection)
vte_terminal_copy_clipboard(VTE_TERMINAL(screen));
}