Commit bc10269f authored by Halla Rempt's avatar Halla Rempt

Don't mark the document as modified on creation

KisGridManager::setView called setConfigImpl with the emitModified
parameter set to false explicitly to avoid this; but calling
emit sigRequestUpdateGridConfig(config); directly after that defies
the purpose because that calls GridConfigWidget::setGridConfig
which calls GridConfigWidget::setGridConfigImpl(const KisGridConfig &value)
which GridDockerDock::slotGuiGridConfigChanged(), which calls...


which calls setGridConfigImpl(config, true); -- which emits the modified

Sometimes I think that Italy can learn a lesson from us when it comes
to creating impressive pastas.
parent bf4e7da1
......@@ -106,9 +106,9 @@ void KisGridManager::setView(QPointer<KisView> imageView)
KisGridConfig config = imageView->document()->gridConfig();
setGridConfigImpl(config, false);
emit sigRequestUpdateGridConfig(config);
KisSignalsBlocker b1(m_toggleGrid, m_toggleSnapToGrid);
KisSignalsBlocker blocker(m_toggleGrid, m_toggleSnapToGrid);
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