unsent files fixes - part 1

This commit is contained in:
ingvar1995 2018-05-19 21:04:40 +03:00
parent 6495aa9920
commit 206c5c4905
4 changed files with 36 additions and 29 deletions

View file

@ -316,8 +316,8 @@ class MainWindow(QtWidgets.QMainWindow):
def load(pos):
if not pos:
friend = self._contacts_manager.get_curr_friend()
self._history_loader.load_history(friend)
contact = self._contacts_manager.get_curr_contact()
self._history_loader.load_history(contact)
self.messages.verticalScrollBar().setValue(1)
self.messages.verticalScrollBar().valueChanged.connect(load)
self.messages.setVerticalScrollMode(QtWidgets.QAbstractItemView.ScrollPerPixel)