Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

Commit

Permalink
Fix not closing bugs & closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsmh committed Nov 8, 2018
1 parent c069f5e commit 261b3b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ybqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ def PrintText(self, string):

def closeEvent(self, ev):
self.QsettingHook()
loginw.close()
ev.accept()

def showLogin(self):
Expand Down Expand Up @@ -456,7 +457,7 @@ def onCookieAdded(self, cookie):
if 'yiban_user_token' in self.cookies:
mainw.tokenLineedit.setText(loginw.cookies['yiban_user_token'])
self.resetWebview()
loginw.hide()
loginw.close()

def closeEvent(self, ev):
self.resetWebview()
Expand Down

0 comments on commit 261b3b7

Please sign in to comment.