chat history support (partial)

This commit is contained in:
ingvar1995
2016-03-12 23:18:13 +03:00
parent 31ccd99d0e
commit 159e1f990a
4 changed files with 114 additions and 42 deletions

View File

@ -229,6 +229,9 @@ class MainWindow(QtGui.QMainWindow):
self.friend_info = info
self.profile = Profile(self.tox, self)
def closeEvent(self, *args, **kwargs):
self.profile.save()
# -----------------------------------------------------------------------------------------------------------------
# Functions which called when user click in menu
# -----------------------------------------------------------------------------------------------------------------
@ -308,6 +311,7 @@ class MainWindow(QtGui.QMainWindow):
def clear_history(self, item):
num = self.friends_list.indexFromItem(item).row()
self.profile.clear_history(num)
# -----------------------------------------------------------------------------------------------------------------
# Functions which called when user click somewhere else