From ad4cff620abc84000f5c99d33b33be5da2ae322e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 26 Jun 2009 16:40:25 +0900 Subject: [PATCH] remove broken osx code --- ankiqt/ui/main.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index d830e4317..3b7414dcb 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -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()