Fixes error on Anki >=1.2.2 #15
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On Anki >=1.2.2 there is an exception when you have JxPlugin installed and try to load decks:
"Error during startup:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ankiqt/ui/main.py", line 103, in init
self.maybeLoadLastDeck(args)
File "/usr/lib/python2.6/site-packages/ankiqt/ui/main.py", line 785, in maybeLoadLastDeck
r = self.loadDeck(path, interactive=False, sync=False)
File "/home/kolcon/.anki/plugins/JxPlugin/ui_menu.py", line 183, in newLoadDeck
code = oldLoadDeck(deckPath, sync, interactive, uprecent,media)
TypeError: loadDeck() takes at most 5 arguments (6 given)"
This is kind of dirty hack by just removing the argument which is too much :P.
(I've edited your windows7 Branch as it is the most current one. For some reason github wants me to send a pull request for the :master branch, so it lists 7 commits).