bug with clearing history fixed, close to tray on esc

This commit is contained in:
ingvar1995
2016-05-08 00:47:10 +03:00
parent 8df2e3ebce
commit 78c376a0b0
3 changed files with 9 additions and 1 deletions

View File

@ -310,6 +310,12 @@ class MainWindow(QtGui.QMainWindow):
self.account_status.setGeometry(QtCore.QRect(100, 50, self.width() - 520, 25))
self.profile.update()
def keyPressEvent(self, event):
if event.key() == QtCore.Qt.Key_Escape:
self.hide()
else:
super(MainWindow, self).keyPressEvent(event)
# -----------------------------------------------------------------------------------------------------------------
# Functions which called when user click in menu
# -----------------------------------------------------------------------------------------------------------------