bug fixes and docs update

This commit is contained in:
ingvar1995 2016-08-08 22:11:43 +03:00
parent 3668088f3e
commit 47b710acdd
3 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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:

View File

@ -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)