From 90c3fe7f9a9e7f035424251bec16355d80619bc1 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Fri, 21 Jul 2017 22:42:00 -0400 Subject: [PATCH] Version 1.3.5 --- CHANGELOG.rst | 5 +++++ dottorrentGUI/gui.py | 4 ++-- dottorrentGUI/version.py | 2 +- setup.py | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0bca5a1..114281b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,11 @@ Changelog ========= +1.3.5 +----- +* [FIX] Paste from clipboard with quoted paths +* [CHANGE] Require dottorrent 1.9.2 or higher + 1.3.4 ----- * [FIX] Odd window resizing behavior on reset diff --git a/dottorrentGUI/gui.py b/dottorrentGUI/gui.py index 62adab9..3a16a48 100755 --- a/dottorrentGUI/gui.py +++ b/dottorrentGUI/gui.py @@ -258,7 +258,6 @@ def browseInput(self): self.initializeTorrent() def injectInputPath(self, path): - path = path.strip() if os.path.exists(path): if os.path.isfile(path): self.inputType = 'file' @@ -288,7 +287,8 @@ def inputDropEvent(self, event): def pasteInput(self): mimeData = self.clipboard().mimeData() if mimeData.hasText(): - self.injectInputPath(mimeData.text()) + path = mimeData.text().strip("'\"") + self.injectInputPath(path) def batchModeChanged(self, state): if state == QtCore.Qt.Checked: diff --git a/dottorrentGUI/version.py b/dottorrentGUI/version.py index e372abf..09d50a0 100644 --- a/dottorrentGUI/version.py +++ b/dottorrentGUI/version.py @@ -1 +1 @@ -__version__ = '1.3.4' \ No newline at end of file +__version__ = '1.3.5' \ No newline at end of file diff --git a/setup.py b/setup.py index 6209e0e..7a9532b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ # Project uses reStructuredText, so ensure that the docutils get # installed or upgraded on the target machine - install_requires=['dottorrent>=1.9.0', 'PyQt5>=5.7'], + install_requires=['dottorrent>=1.9.2', 'PyQt5>=5.7'], # metadata for upload to PyPI author="Kevin Zhang",