Go to file
Thomas TEMPÉ 3d81ef2c68 Avoid calling checkValid on an empty note
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'
2014-12-31 22:36:12 +08:00
anki Use alternate pattern match during field changes 2014-12-29 20:09:09 -06:00
aqt Avoid calling checkValid on an empty note 2014-12-31 22:36:12 +08:00
designer add keyboard shortcut for 'manage note types' 2014-08-10 13:52:09 -05:00
oldanki don't update media count when upgrading 2013-09-07 06:51:42 +09:00
tests fix media test 2014-07-28 14:26:40 +09:00
thirdparty remove pyaudio try/accept, as we catch it in sound.py 2013-12-17 02:02:56 +09:00
tools tweak build_ui to handle qt5 ui translations 2014-03-30 10:19:48 +09:00
.gitignore fix i18n on linux install 2012-12-21 18:04:26 +09:00
anki.1 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.bat tweak .bat 2012-12-21 19:23:22 +09:00
anki.desktop merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.png merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.xml merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.xpm merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
LICENSE merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
LICENSE.logo merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
Makefile don't error out if /usr/share/pixmaps doesn't exist 2013-12-09 11:54:18 +09:00
README automatically fix 1.2 errors when upgrading 2013-01-08 09:43:29 +09:00
README.development add powershell link to readme.dev 2014-11-29 16:49:30 +09:00
runanki fix i18n on linux install 2012-12-21 18:04:26 +09:00

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/