Skip to content
Snippets Groups Projects
Commit c6bc7391 authored by Halla Rempt's avatar Halla Rempt
Browse files

BUG:343837 Don't assert when checking the texture option

The assert is meant to warn us that some option is emitting changes
to the settings while writing the settings. The texture option does
exactly that because if you check for the currently set pattern, and
no pattern is set (which can happen because of the background loading of
patterns), it will set a pattern. Which will cause the settings to
change as they are being written.

So block all pattern resource chooser signals while writing out the
option -- the written option will be correct anyway.
parent 457eb87a
No related branches found
No related tags found
No related merge requests found
......@@ -162,8 +162,10 @@ KisTextureOption::~KisTextureOption()
void KisTextureOption::writeOptionSetting(KisPropertiesConfiguration* setting) const
{
m_optionWidget->chooser->blockSignals(true); // Checking
if (!m_optionWidget->chooser->currentResource()) return;
KoPattern *pattern = static_cast<KoPattern*>(m_optionWidget->chooser->currentResource());
m_optionWidget->chooser->blockSignals(false); // Checking
if (!pattern) return;
qreal scale = m_optionWidget->scaleSlider->value();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment