anki/aqt
Damien Elmes 8e71554ac4 saveNow() now requires a callback
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.
2016-07-14 20:23:44 +10:00
..
__init__.py import anki earlier so we can catch invalid python version 2016-06-22 14:42:41 +10:00
about.py fix mem leaks in dialogs 2016-07-04 13:22:35 +10:00
addcards.py saveNow() now requires a callback 2016-07-14 20:23:44 +10:00
addons.py re-enable add-on downloading 2016-07-08 13:17:33 +10:00
browser.py saveNow() now requires a callback 2016-07-14 20:23:44 +10:00
clayout.py image support 2016-07-07 23:39:48 +10:00
customstudy.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
deckbrowser.py add missing runHook to deck options 2016-07-08 12:59:10 +10:00
deckchooser.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
deckconf.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
downloader.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
dyndeckconf.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
editcurrent.py saveNow() now requires a callback 2016-07-14 20:23:44 +10:00
editor.py saveNow() now requires a callback 2016-07-14 20:23:44 +10:00
errors.py quieten beautifulsoup warning 2016-07-04 18:06:08 +10:00
exporting.py fix exporting & one bug in stats image export 2016-07-05 19:52:26 +10:00
fields.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
importing.py fix import of media 2016-07-11 14:56:58 +10:00
main.py image support 2016-07-07 23:39:48 +10:00
mediasrv.py swallow http server errors 2016-07-08 13:22:36 +10:00
modelchooser.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
models.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
overview.py resize toolbars to fit content 2016-06-07 14:27:33 +10:00
preferences.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
profiles.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
progress.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
qt.py debug webengine dll problems 2016-07-08 12:34:30 +10:00
reviewer.py image support 2016-07-07 23:39:48 +10:00
sound.py optimize imports 2012-12-22 09:17:10 +09:00
stats.py fix exporting & one bug in stats image export 2016-07-05 19:52:26 +10:00
studydeck.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
sync.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
tagedit.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
taglimit.py Limit tags in custom study dialog to those in the selected deck 2015-11-21 14:38:21 +02:00
toolbar.py resize toolbars to fit content 2016-06-07 14:27:33 +10:00
update.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
utils.py image support 2016-07-07 23:39:48 +10:00
webview.py select all shortcut in fields 2016-07-14 11:56:18 +10:00