mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
Fix crash with enabled sys tray icon
If sys tray icon is enabled anki crash when e.g. the graphs view is opened. Removing the lambda functions used for the signal registration fixes the problem.
This commit is contained in:
parent
21969b1549
commit
e4d4ecf221
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class AnkiTrayIcon(QtCore.QObject):
|
|||
mw.addView(self)
|
||||
mw.connect(self.ti, QtCore.SIGNAL("activated(QSystemTrayIcon::ActivationReason)"),lambda i: self.activated(i))
|
||||
mw.connect(self.ti, QtCore.SIGNAL("messageClicked()"), lambda : self.messageClicked())
|
||||
mw.connect(self.mw.app, QtCore.SIGNAL("focusChanged(QWidget*,QWidget*)"), lambda old,now: self.focusChanged(old,now))
|
||||
mw.connect(self.mw.app, QtCore.SIGNAL("focusChanged(QWidget*,QWidget*)"), self.focusChanged)
|
||||
self.ti.show()
|
||||
|
||||
def showAll(self):
|
||||
|
|
Loading…
Reference in a new issue