remove signal blocker
fixes 0003752: Preferences/Sketcher: Changing Grid size default is not respected upon creation of new Sketches
This commit is contained in:
@@ -229,18 +229,8 @@ TaskSketcherGeneral::TaskSketcherGeneral(ViewProviderSketch *sketchView)
|
||||
);
|
||||
|
||||
Gui::Selection().Attach(this);
|
||||
QSignalBlocker block(widget);
|
||||
widget->loadSettings();
|
||||
|
||||
// only the widget knows the preset, view control disables the grid automatically
|
||||
// when leaving edit mode. See bool ViewProviderSketch::setEdit(int ModNum)
|
||||
onToggleGridView(widget->isGridViewChecked());
|
||||
|
||||
widget->setGridSize(sketchView->GridSize.getValue());
|
||||
widget->checkGridView(sketchView->ShowGrid.getValue());
|
||||
widget->checkGridSnap(sketchView->GridSnap.getValue());
|
||||
widget->checkAutoconstraints(sketchView->Autoconstraints.getValue());
|
||||
|
||||
Gui::Application* app = Gui::Application::Instance;
|
||||
changedSketchView = app->signalChangedObject.connect(boost::bind
|
||||
(&TaskSketcherGeneral::onChangedSketchView, this, _1, _2));
|
||||
|
||||
Reference in New Issue
Block a user