Commit fe98c3e9 authored by Scott Petrovic's avatar Scott Petrovic

favorite presets amount is stored in kisconfig now

parent 06028ae5
......@@ -18,6 +18,7 @@
*/
#include "kis_config.h"
#include "kis_popup_palette.h"
#include "kis_paintop_box.h"
#include "kis_favorite_resource_manager.h"
......@@ -542,7 +543,8 @@ int KisPopupPalette::calculatePresetIndex(QPointF point, int /*n*/)
int KisPopupPalette::numSlots()
{
return qMax(m_resourceManager->numFavoritePresets(), 10);
KisConfig config;
return qMax(config.favoritePresets(), 10);
}
#include "kis_popup_palette.moc"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment