Commit Graph

436 Commits

Author SHA1 Message Date
Damien Elmes
0afce5f19a support unc pathnames again
Turns out that WebKit does support UNC pathnames in the base tag, but it is
picky about the leading number of slashes.
2013-05-17 14:12:59 +09:00
Damien Elmes
273cb74e3d separate messages for 50x errors 2013-05-17 13:58:38 +09:00
Damien Elmes
da66844f6b canonify tags when saving, and strip quotes (#794) 2013-05-17 13:51:49 +09:00
Damien Elmes
e63c8e5619 force webkit to output <br> when enter pressed, instead of div
this should make it easier for mobile clients to convert into newlines
2013-05-17 13:22:58 +09:00
Damien Elmes
8f36841281 ensure we match on identical closing quote (#769) 2013-05-17 12:23:56 +09:00
Damien Elmes
c45525179b replacement order must be reversed 2013-05-17 11:46:51 +09:00
Damien Elmes
faddc59232 handle % as well (#823) 2013-05-17 11:38:34 +09:00
Damien Elmes
93717df30b fix pasting/attaching with unicode chars (#813, #867)
- treat # specially instead of quoting entire string, as urllib unfortunately
  can't handle utf8 quoted text
- make sure we pass utf8 to quote() in _addMedia()
2013-05-17 11:34:15 +09:00
Damien Elmes
403a53cebf shuffle after importing when random on (#576) 2013-05-16 21:55:57 +09:00
Damien Elmes
2ac2619527 don't shorten deck descriptions anymore (#467) 2013-05-16 18:05:10 +09:00
Damien Elmes
13a2943667 full media scan on fat32 drives (#844) 2013-05-16 17:58:30 +09:00
Damien Elmes
69e38b18e1 strip implicit span from copy&paste (#777) 2013-05-16 17:46:48 +09:00
Damien Elmes
c8f4d3a582 check checksum of all filename alternatives when adding media
patch thanks to Julien Baley
2013-05-16 17:24:20 +09:00
Damien Elmes
3dd72ad4d6 log updates & duplicates (#859) 2013-05-16 17:24:12 +09:00
Damien Elmes
a7b9a7b055 fix bug where 2 buttons shown on second learn step (#864) 2013-05-16 17:10:31 +09:00
Damien Elmes
23b5cbd13a clearer options group warning (#661) 2013-05-16 16:50:48 +09:00
Damien Elmes
bbe248698a correctly decode %-escaped utf8 when pasting (#865) 2013-05-16 16:41:20 +09:00
Damien Elmes
e06594a303 fix rescheduling of relearn cards (#874)
- need to reset 'odue'
- also need to reset 'due' so the new cards don't take on - timestamp
  positions
2013-05-16 16:36:37 +09:00
Damien Elmes
1efb03f16d allow a few more audio formats in paste 2013-05-16 16:28:45 +09:00
Damien Elmes
518a61732e fix main window coming to top after paste on win (#456) 2013-05-16 16:26:31 +09:00
Damien Elmes
e47da34cbc fix drag&drop of images with # char (#867) 2013-05-16 16:22:23 +09:00
Damien Elmes
1fb0c73e91 fix crash on linux when pasting invalid url (#858) 2013-05-16 16:21:41 +09:00
Damien Elmes
3f6266a712 fix duplicate search in browser (#855) 2013-05-16 14:17:28 +09:00
Damien Elmes
254a2ecad6 allow canceling of note type selection (#849) 2013-05-16 13:56:21 +09:00
Damien Elmes
0dceb0ce22 round() doesn't convert to int 2013-05-15 23:37:27 +09:00
Damien Elmes
47e7f28779 make sure windows that are minimized are restored (#853) 2013-05-14 21:18:30 +09:00
Damien Elmes
3e08f09b07 export filename check should be on basename 2013-05-14 20:47:31 +09:00
Damien Elmes
f7c5003c1c better error with very long fields in import (#852) 2013-05-14 18:38:35 +09:00
Damien Elmes
7ca86e2dd7 make desktop folder if missing (#851) 2013-05-14 18:24:05 +09:00
Damien Elmes
7ad33fea06 catch notes with invalid field count in db check 2013-05-14 18:12:31 +09:00
Damien Elmes
ab198c46be unify pre-check, sanity-check and upload error messages 2013-05-14 15:41:18 +09:00
Damien Elmes
79d4451299 move full sync into preferences, and remove maintenance menu 2013-05-14 15:27:40 +09:00
Damien Elmes
e913c75fd7 perform basic check prior to syncing 2013-05-14 15:10:58 +09:00
Damien Elmes
d2535fd6cb run basic integrity check prior to full up 2013-05-13 19:36:09 +09:00
Damien Elmes
ac7bd4f736 fix i18n issue 2013-05-13 13:58:41 +09:00
Damien Elmes
a379e47ca5 handle cloned note types in mnemo import 2013-05-13 13:58:10 +09:00
Damien Elmes
ce99114dc3 more robust desktop location detection 2013-05-12 17:24:01 +09:00
Damien Elmes
f6f6537967 fix regression caused by preview code
we shouldn't blank out self.card when multiple cards selected, as a number of
other routines take it to mean the most recently selected card.
2013-05-10 15:02:58 +09:00
Damien Elmes
058f19b18d update obsolote activated() signals 2013-05-10 14:49:21 +09:00
Damien Elmes
4884d0edf7 handle chrome's newlines in url issue and make sure to clean up progress 2013-05-09 15:34:16 +09:00
Damien Elmes
dbfe9529f9 fix race in preview mode, and fix preview shortcut keys in qt5 2013-05-09 15:32:30 +09:00
Damien Elmes
c8fd2e2f87 future imports must go at top 2013-05-07 18:30:17 +09:00
Damien Elmes
13cbade4a3 use future division in those aqt files too 2013-05-07 15:27:35 +09:00
Damien Elmes
4bfbd2396a do integrity check when closing collection 2013-05-07 15:27:35 +09:00
Damien Elmes
e48a9f998b Merge pull request #28 from MichaelBlume/future-division
use futuristic division
2013-05-06 23:25:29 -07:00
Damien Elmes
e7d604a06e allow overwriting existing files in export (thanks to Chris Burel) 2013-05-07 14:19:30 +09:00
Mike Blume
dcf097b55f use futuristic division
Python used to use C-style division, where division of two ints was
truncated, and division involving a float resulted in a float.

This is confusing, because you often can't tell from looking at a
line of code in isolation what sort of division it's supposed to do.

With 'from __future__ import division' Python ensures that division is
always explicit.

// means (floored) integer division
/ means float division

regardless of argument types.

This should make the source a bit clearer now, as well as removing one
obstacle if Anki is ever ported to Python 3.
2013-05-05 11:09:16 -07:00
Damien Elmes
2c1194658e remove unused onRevlog() 2013-05-04 15:45:57 +09:00
Damien Elmes
5951ccb09e preliminary preview support 2013-05-04 15:45:57 +09:00
Damien Elmes
9875e26e06 make sure y axis starts at 0
https://anki.tenderapp.com/discussions/ankidesktop/793-strange-scaling-in-statistics-bar-bug
2013-05-04 15:45:57 +09:00