8e71554ac4
the current code was freezing when clicking on 'cards' in the browser - it looks like like the javascript callback was never being called despite calling processEvents(). so we need to refactor the code to call saveNow() with a callback that does the subsequent processing. a lot of the browser code was implicitly calling saveNow() via beginReset(), so we've had to change all that code to save immediately before it begins any processing. found a probable bug in the process - it doesn't look like onRowChange() was saving before overwriting the note, so theoretically edits could be lost if the user switched to another card very quickly after typing something. onSearch() has been split into a GUI-activated onSearchActivated() that takes care of saving, and a lower level search() that refreshes the current search. it keeps track of the last search via an instance variable so that it refreshes properly if a user accidentally adds some characters to their search without activating the search, then does something like reverse the sort order. |
||
---|---|---|
.. | ||
__init__.py | ||
about.py | ||
addcards.py | ||
addons.py | ||
browser.py | ||
clayout.py | ||
customstudy.py | ||
deckbrowser.py | ||
deckchooser.py | ||
deckconf.py | ||
downloader.py | ||
dyndeckconf.py | ||
editcurrent.py | ||
editor.py | ||
errors.py | ||
exporting.py | ||
fields.py | ||
importing.py | ||
main.py | ||
mediasrv.py | ||
modelchooser.py | ||
models.py | ||
overview.py | ||
preferences.py | ||
profiles.py | ||
progress.py | ||
qt.py | ||
reviewer.py | ||
sound.py | ||
stats.py | ||
studydeck.py | ||
sync.py | ||
tagedit.py | ||
taglimit.py | ||
toolbar.py | ||
update.py | ||
utils.py | ||
webview.py |