resizing update. alias deleting
This commit is contained in:
parent
2b8da1deb4
commit
5e1dfe6d36
2 changed files with 9 additions and 0 deletions
|
@ -306,6 +306,8 @@ class MainWindow(QtGui.QMainWindow):
|
||||||
self.screenshotButton.setGeometry(QtCore.QRect(self.width() - 465, 5, 55, 70))
|
self.screenshotButton.setGeometry(QtCore.QRect(self.width() - 465, 5, 55, 70))
|
||||||
self.fileTransferButton.setGeometry(QtCore.QRect(self.width() - 410, 5, 55, 70))
|
self.fileTransferButton.setGeometry(QtCore.QRect(self.width() - 410, 5, 55, 70))
|
||||||
self.sendMessageButton.setGeometry(QtCore.QRect(self.width() - 355, 5, 55, 70))
|
self.sendMessageButton.setGeometry(QtCore.QRect(self.width() - 355, 5, 55, 70))
|
||||||
|
self.account_name.setGeometry(QtCore.QRect(100, 30, self.width() - 520, 25))
|
||||||
|
self.account_status.setGeometry(QtCore.QRect(100, 50, self.width() - 520, 25))
|
||||||
self.profile.update()
|
self.profile.update()
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -717,6 +717,13 @@ class Profile(Contact, Singleton):
|
||||||
:param num: number of friend in list
|
:param num: number of friend in list
|
||||||
"""
|
"""
|
||||||
friend = self._friends[num]
|
friend = self._friends[num]
|
||||||
|
try:
|
||||||
|
settings = Settings.get_instance()
|
||||||
|
index = map(lambda x: x[0], settings['friends_aliases']).index(friend.tox_id)
|
||||||
|
del settings['friends_aliases'][index]
|
||||||
|
settings.save()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.clear_history(num)
|
self.clear_history(num)
|
||||||
if self._history.friend_exists_in_db(friend.tox_id):
|
if self._history.friend_exists_in_db(friend.tox_id):
|
||||||
self._history.delete_friend_from_db(friend.tox_id)
|
self._history.delete_friend_from_db(friend.tox_id)
|
||||||
|
|
Loading…
Reference in a new issue