mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix startup when no deck available
This commit is contained in:
parent
4fd65c37c5
commit
b1b6d322df
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class View(object):
|
|||
self.buffer = self.addStyles() + self.buffer
|
||||
# hook for user css
|
||||
runHook("preFlushHook")
|
||||
if self.main.deck.mediaDir():
|
||||
if self.main.deck and self.main.deck.mediaDir():
|
||||
if sys.platform.startswith("win32"):
|
||||
prefix = u"file:///"
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue