remove broken osx code

This commit is contained in:
Damien Elmes 2009-06-26 16:40:25 +09:00
parent 0c7405fa0d
commit ad4cff620a

View file

@ -2512,13 +2512,15 @@ it to your friends.
recordNoiseProfile(self)
def onSoundQueued(self):
if sys.platform.startswith("darwin"):
# because the gui doesn't return focus, manually focus anki again
t = QTimer(self)
t.setSingleShot(True)
t.start(1000)
self.connect(t, SIGNAL("timeout()"),
self.onSoundTimer)
pass
# this doesn't work
# if sys.platform.startswith("darwin"):
# # because the gui doesn't return focus, manually focus anki again
# t = QTimer(self)
# t.setSingleShot(True)
# t.start(1000)
# self.connect(t, SIGNAL("timeout()"),
# self.onSoundTimer)
def onSoundTimer(self):
self.activateWindow()