Skip to content

Commit

Permalink
Merge pull request #5511 from ericmehl/copyPasteWindows
Browse files Browse the repository at this point in the history
gui app : Fix copy and paste on Windows
  • Loading branch information
johnhaddon authored Oct 23, 2023
2 parents c30bc7a + cffa154 commit ae8a1e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
1.3.x.x (relative to 1.3.5.0)
=======

Fixes
-----

- Windows : Fixed a bug preventing anything except strings from being copied and pasted.


1.3.5.0 (relative to 1.3.4.0)
=======
Expand Down
2 changes: 1 addition & 1 deletion apps/gui/gui-1.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def __qtClipboardContentsChanged( self ) :
from Qt import QtWidgets

text = QtWidgets.QApplication.clipboard().text().encode( "utf-8" )
if text :
if text and text != str( self.root().getClipboardContents() ).encode( "utf-8" ) :
with Gaffer.Signals.BlockedConnection( self.__clipboardContentsChangedConnection ) :
self.root().setClipboardContents( IECore.StringData( text ) )

Expand Down

0 comments on commit ae8a1e9

Please sign in to comment.