From 47b710acdd3156e6a5143f3e0b8a5175f9d7087b Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Mon, 8 Aug 2016 22:11:43 +0300 Subject: [PATCH] bug fixes and docs update --- docs/install.md | 4 +++- toxygen/mainscreen.py | 2 +- toxygen/profile.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/install.md b/docs/install.md index bf79c67..fdef223 100644 --- a/docs/install.md +++ b/docs/install.md @@ -32,7 +32,9 @@ Run app using ``toxygen`` command. ## Packages -Coming soon. +Arch Linux: [AUR](https://aur.archlinux.org/packages/toxygen-git/) + +Debian/Ubuntu: [tox.chat](https://tox.chat/download.html#gnulinux) ## From source code (recommended for developers) diff --git a/toxygen/mainscreen.py b/toxygen/mainscreen.py index 2ad6e9e..b9d7e12 100644 --- a/toxygen/mainscreen.py +++ b/toxygen/mainscreen.py @@ -260,7 +260,7 @@ class MainWindow(QtGui.QMainWindow, Singleton): self.messages.setSpacing(1) self.messages.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) self.messages.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) - # self.messages.setFocusPolicy(QtCore.Qt.NoFocus) + self.messages.focusOutEvent = lambda event: self.messages.clearSelection() def load(pos): if not pos: diff --git a/toxygen/profile.py b/toxygen/profile.py index ff271d1..0356d88 100644 --- a/toxygen/profile.py +++ b/toxygen/profile.py @@ -313,7 +313,7 @@ class Profile(contact.Contact, Singleton): ft = self._file_transfers[(friend_num, file_num)] if type(ft) is SendTransfer: self._paused_file_transfers[ft.get_id()] = [ft.get_path(), friend_num, False, -1] - elif type(ft) is ReceiveTransfer: + elif type(ft) is ReceiveTransfer and ft.state != TOX_FILE_TRANSFER_STATE['INCOMING_NOT_STARTED']: self._paused_file_transfers[ft.get_id()] = [ft.get_path(), friend_num, True, ft.total_size()] self.cancel_transfer(friend_num, file_num, True)