From 405a28e090d757803dee91531e4d8cb5de7fc33a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 9 Dec 2010 16:30:43 +0900 Subject: [PATCH] skip dropbox init if media folder doesn't exist --- ankiqt/ui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index fe5ff7568..647668624 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -2900,7 +2900,7 @@ This deck already exists on your computer. Overwrite the local copy?"""), dir = deck.mediaDir() # update location deck.setVar("mediaLocation", next) - if prefix == "dropbox": + if dir and prefix == "dropbox": self.setupDropbox(deck) def migrateMedia(self, from_, to):