This commit is contained in:
Damien Elmes 2014-07-04 06:41:44 +09:00
commit 03f9c76b9e
2 changed files with 2 additions and 4 deletions

View file

@ -513,9 +513,6 @@ class Browser(QMainWindow):
self.onSearch)
self.form.searchEdit.setCompleter(None)
self.form.searchEdit.addItems(self.mw.pm.profile['searchHistory'])
self.connect(self.form.searchEdit.lineEdit(),
SIGNAL("returnPressed()"),
self.onSearch)
def onSearch(self, reset=True):
"Careful: if reset is true, the current note is saved."

View file

@ -223,7 +223,8 @@ and no other programs are accessing your profile folders, then try again."""))
if os.path.exists(p):
return p
else:
return os.path.expanduser("~/Documents/Anki")
loc = QDesktopServices.storageLocation(QDesktopServices.DocumentsLocation)
return os.path.join(loc, "Anki")
def _loadMeta(self):
path = os.path.join(self.base, "prefs.db")