3d81ef2c68
Fix error message when editFocusLost is called after editor destruction https://anki.tenderapp.com/discussions/ankidesktop/11175-bug-in-browser-revealed-by-add-on?unresolve=true To reproduce: 1. Install the attached add-on. (All it does is register a function on the editFocusLost hook, and set the flag to 1 to signify that a field has been updated). 2. Run Anki. Enter the Browse window. Press Enter to display your deck. 3. Select one card. 4. Click inside one of the fields for that card. Now, when you leave that field, the editFocusLost hook will be called. 5. Now, select 2 notes from the browser, with your mouse, without clicking anywhere else before. You will observe this error message: Traceback (most recent call last): File "aqt/progress.pyc", line 69, in handler File "aqt/editor.pyc", line 467, in onUpdate File "aqt/editor.pyc", line 572, in checkValid AttributeError: 'NoneType' object has no attribute 'fields' |
||
---|---|---|
anki | ||
aqt | ||
designer | ||
oldanki | ||
tests | ||
thirdparty | ||
tools | ||
.gitignore | ||
anki.1 | ||
anki.bat | ||
anki.desktop | ||
anki.png | ||
anki.xml | ||
anki.xpm | ||
LICENSE | ||
LICENSE.logo | ||
Makefile | ||
README | ||
README.development | ||
runanki |
Anki ------------------------------------- Prerequisites --------------- To install the prerequisites on Ubuntu/Debian, please use the following command: sudo apt-get install python-qt4 mplayer lame libportaudio2 python-sqlalchemy If you're on another distribution the packages may be named differently, so please consult your package manager. Your Python version will need to be 2.6 or 2.7 (not 3+), and both Qt and PyQt need to be 4.7 or later. Installation & Running ------------------------ Anki does not need installing, and can be run from the directory it is extracted to. If you extracted it to ~/anki-2.0 for example, you can run Anki by simply typing ~/anki-2.0/runanki in a terminal. If you'd like to install it system wide, change to the folder you extracted it to, and run 'sudo make install'. If you need to uninstall Anki in the future, you can do so by typing 'sudo make uninstall'. More information ----------------- For more information and the latest version, please see the website at: http://ankisrs.net/