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...

m_canvas->viewManager()->gridManager()->setGridConfig(m_configWidget->gridConfig());

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

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);
Q_UNUSED(blocker);
m_toggleGrid->setChecked(config.showGrid());
m_toggleSnapToGrid->setChecked(config.snapToGrid());
}
......
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