Commit a72db2052820a88c13f7241000c3d3210b276954

Authored by Perry Werneck
1 parent 94d2dd0b
Exists in master and in 1 other branch develop

Fixing clipboard behavior on windows.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/selection/windows/paste.c
... ... @@ -149,7 +149,7 @@ static void formatted_received(GtkClipboard *clipboard, GtkSelectionData *select
149 149  
150 150 static void targets_received(GtkClipboard *clipboard, GdkAtom *atoms, gint n_atoms, GtkWidget *widget)
151 151 {
152   - if(has_target(GTK_V3270_GET_CLASS(widget)->clipboard_formatted,atoms,n_atoms))
  152 + if(lib3270_toggle(GTK_V3270(widget)->host,LIB3270_TOGGLE_SMART_PASTE) && has_target(GTK_V3270_GET_CLASS(widget)->clipboard_formatted,atoms,n_atoms))
153 153 {
154 154 debug("Clipboard as TN3270 \"%s\" data",gdk_atom_name(GTK_V3270_GET_CLASS(widget)->clipboard_formatted));
155 155  
... ...