mirror of https://github.com/KLayout/klayout.git
Merge pull request #2177 from KLayout/bugfix/issue-2173
Issue #2173 fixed
This commit is contained in:
commit
5c11f9201a
|
|
@ -110,6 +110,8 @@ Editables::del (db::Transaction *transaction)
|
||||||
e->del ();
|
e->del ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
signal_selection_changed ();
|
||||||
|
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
trans_holder->cancel ();
|
trans_holder->cancel ();
|
||||||
throw;
|
throw;
|
||||||
|
|
|
||||||
|
|
@ -341,6 +341,8 @@ BEGIN_PROTECTED
|
||||||
|
|
||||||
// confine the selection
|
// confine the selection
|
||||||
|
|
||||||
|
auto prev_selected = mp_editables->selection_size ();
|
||||||
|
|
||||||
mp_tree_model->begin_reset_model ();
|
mp_tree_model->begin_reset_model ();
|
||||||
|
|
||||||
auto selection = mp_ui->tree->selectionModel ()->selectedIndexes ();
|
auto selection = mp_ui->tree->selectionModel ()->selectedIndexes ();
|
||||||
|
|
@ -409,6 +411,10 @@ BEGIN_PROTECTED
|
||||||
|
|
||||||
update_controls ();
|
update_controls ();
|
||||||
|
|
||||||
|
if (m_objects != prev_selected) {
|
||||||
|
mp_editables->signal_selection_changed ();
|
||||||
|
}
|
||||||
|
|
||||||
END_PROTECTED
|
END_PROTECTED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue