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) recordNoiseProfile(self)
def onSoundQueued(self): def onSoundQueued(self):
if sys.platform.startswith("darwin"): pass
# because the gui doesn't return focus, manually focus anki again # this doesn't work
t = QTimer(self) # if sys.platform.startswith("darwin"):
t.setSingleShot(True) # # because the gui doesn't return focus, manually focus anki again
t.start(1000) # t = QTimer(self)
self.connect(t, SIGNAL("timeout()"), # t.setSingleShot(True)
self.onSoundTimer) # t.start(1000)
# self.connect(t, SIGNAL("timeout()"),
# self.onSoundTimer)
def onSoundTimer(self): def onSoundTimer(self):
self.activateWindow() self.activateWindow()