fix runhook reference

This commit is contained in:
Damien Elmes 2009-04-18 23:44:21 +09:00
parent 1da04aca5d
commit fdfac00a5e

View file

@ -67,6 +67,7 @@ color: #13486c;
class AnkiApp(QApplication): class AnkiApp(QApplication):
def event(self, evt): def event(self, evt):
from anki.hooks import runHook
if evt.type() == QEvent.FileOpen: if evt.type() == QEvent.FileOpen:
runHook("macLoadEvent", unicode(evt.file())) runHook("macLoadEvent", unicode(evt.file()))
return True return True
@ -74,7 +75,6 @@ class AnkiApp(QApplication):
def run(): def run():
import config import config
from anki.hooks import runHook
# home on win32 is broken # home on win32 is broken
if sys.platform == "win32": if sys.platform == "win32":