From 555ed62e1cfb3b9d99ed52e57b6ef9ebcdba218e Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Thu, 12 Feb 2015 21:33:03 +0100 Subject: [PATCH] Use the configured cache size --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index eae2fc7..f1d3033 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -69,7 +69,7 @@ DanbooruMainWindow::DanbooruMainWindow(QWidget *parent) qRegisterMetaType(); // 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