Commit b77c02fb authored by Boudewijn Rempt's avatar Boudewijn Rempt

Make sure the initial setting is applied

parent 64436c84
......@@ -61,7 +61,6 @@ KisPaintOpPresetsChooserPopup::KisPaintOpPresetsChooserPopup(QWidget * parent)
m_d->uiWdgPaintOpPresets.viewModeButton->setPopupMode(QToolButton::InstantPopup);
m_d->uiWdgPaintOpPresets.wdgPresetChooser->setViewMode(mode);
m_d->uiWdgPaintOpPresets.wdgPresetChooser->showTaggingBar(false,true);
m_d->uiWdgPaintOpPresets.showAllCheckBox->setChecked(showAll);
connect(m_d->uiWdgPaintOpPresets.wdgPresetChooser, SIGNAL(resourceSelected(KoResource*)),
this, SIGNAL(resourceSelected(KoResource*)));
......@@ -78,6 +77,8 @@ KisPaintOpPresetsChooserPopup::KisPaintOpPresetsChooserPopup(QWidget * parent)
connect(m_d->uiWdgPaintOpPresets.showAllCheckBox, SIGNAL(toggled(bool)),
m_d->uiWdgPaintOpPresets.wdgPresetChooser, SLOT(setShowAll(bool)));
m_d->firstShown = true;
m_d->uiWdgPaintOpPresets.showAllCheckBox->setChecked(showAll);
}
KisPaintOpPresetsChooserPopup::~KisPaintOpPresetsChooserPopup()
......
......@@ -43,6 +43,7 @@
#include "kis_resource_server_provider.h"
#include "kis_global.h"
#include "kis_slider_spin_box.h"
#include "kis_config.h"
/// The resource item delegate for rendering the resource preview
class KisPresetDelegate : public QAbstractItemDelegate
......@@ -113,7 +114,10 @@ class KisPresetProxyAdapter : public KoResourceServerAdapter<KisPaintOpPreset>
public:
KisPresetProxyAdapter(KoResourceServer< KisPaintOpPreset >* resourceServer)
: KoResourceServerAdapter<KisPaintOpPreset>(resourceServer), m_showAll(false), m_filterNames(false){}
: KoResourceServerAdapter<KisPaintOpPreset>(resourceServer), m_filterNames(false)
{
m_showAll = KisConfig().presetShowAllMode();
}
virtual ~KisPresetProxyAdapter() {}
virtual QList< KoResource* > resources() {
......
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