mirror of https://github.com/KLayout/klayout.git
Fixed a segfault in batch mode.
This commit is contained in:
parent
9563d13bf3
commit
83b2c150d9
|
|
@ -99,7 +99,13 @@ TechnologyController::update_after_change ()
|
||||||
// re-attach all events
|
// re-attach all events
|
||||||
tl::Object::detach_from_all_events ();
|
tl::Object::detach_from_all_events ();
|
||||||
|
|
||||||
lay::MainWindow::instance ()->current_view_changed_event.add (this, &TechnologyController::update_after_change);
|
lay::MainWindow *mw = lay::MainWindow::instance ();
|
||||||
|
lay::MacroController *mc = lay::MacroController::instance ();
|
||||||
|
|
||||||
|
if (mw) {
|
||||||
|
mw->current_view_changed_event.add (this, &TechnologyController::update_after_change);
|
||||||
|
}
|
||||||
|
|
||||||
lay::Technologies::instance ()->technology_changed_event.add (this, &TechnologyController::technology_changed);
|
lay::Technologies::instance ()->technology_changed_event.add (this, &TechnologyController::technology_changed);
|
||||||
lay::Technologies::instance ()->technologies_changed_event.add (this, &TechnologyController::technologies_changed);
|
lay::Technologies::instance ()->technologies_changed_event.add (this, &TechnologyController::technologies_changed);
|
||||||
|
|
||||||
|
|
@ -117,11 +123,10 @@ TechnologyController::update_after_change ()
|
||||||
|
|
||||||
m_active_technology = active_tech;
|
m_active_technology = active_tech;
|
||||||
|
|
||||||
lay::MainWindow *mw = lay::MainWindow::instance ();
|
|
||||||
if (mw) {
|
if (mw) {
|
||||||
mw->tech_message (tech_string_from_name (active_tech));
|
mw->tech_message (tech_string_from_name (active_tech));
|
||||||
}
|
}
|
||||||
lay::MacroController *mc = lay::MacroController::instance ();
|
|
||||||
if (mc) {
|
if (mc) {
|
||||||
// TODO: let the macro controller monitor the active technology
|
// TODO: let the macro controller monitor the active technology
|
||||||
// need to do this since macros may be bound to the new technology
|
// need to do this since macros may be bound to the new technology
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue