Use the configured cache size

This commit is contained in:
Luca Beltrame 2015-02-12 21:33:03 +01:00
parent f4566d3aca
commit 555ed62e1c

View file

@ -69,7 +69,7 @@ DanbooruMainWindow::DanbooruMainWindow(QWidget *parent)
qRegisterMetaType<DanbooruPost::Rating>();
// TODO Configurable
m_cache = new KImageCache(qApp->applicationName(), 20000000);
m_cache = new KImageCache(qApp->applicationName(), DanbooruSettings::self()->cacheSize());
m_service->setImageCache(m_cache);
// Set up declarative bindings for the QQuickWidget