Skip to content

Commit

Permalink
Fix paste problem on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MrS0m30n3 committed Apr 1, 2015
1 parent d4d7b7e commit 24980ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl_gui/mainframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MainFrame(wx.Frame):
parent (wx.Window): Frame parent.
"""
wxEVT_TEXT_PASTE = 10212
wxEVT_TEXT_PASTE = 'wxClipboardTextEvent'

BUTTONS_SIZE = (-1, 30)
BUTTONS_SPACE = (80, -1)
Expand Down Expand Up @@ -426,7 +426,7 @@ def _on_urllist_edit(self, event):
click of the mouse.
"""
if event.GetEventType() == self.wxEVT_TEXT_PASTE:
if event.ClassName == self.wxEVT_TEXT_PASTE:
self._paste_from_clipboard()
else:
wx.TheClipboard.UsePrimarySelection(True)
Expand Down

0 comments on commit 24980ce

Please sign in to comment.