Limit pixmap cache size to 2047MB; fix #555

also, fix any invalid values loaded from config
This commit is contained in:
Fabio Bas 2015-01-16 17:11:38 +01:00
parent 8e396cadc2
commit 24c6e4a81d
3 changed files with 9 additions and 2 deletions

View file

@ -9,6 +9,8 @@
#define PIC_URL_HQ_FALLBACK "http://mtgimage.com/set/!setcode!/!name!.jpg"
// size should be a multiple of 64
#define PIXMAPCACHE_SIZE_DEFAULT 256
#define PIXMAPCACHE_SIZE_MIN 64
#define PIXMAPCACHE_SIZE_MAX 2047
class QSettings;