Merge pull request #2177 from KLayout/bugfix/issue-2173

Issue #2173 fixed
This commit is contained in:
Matthias Köfferlein 2025-10-18 13:51:13 +02:00 committed by GitHub
commit 5c11f9201a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -110,6 +110,8 @@ Editables::del (db::Transaction *transaction)
e->del ();
}
signal_selection_changed ();
} catch (...) {
trans_holder->cancel ();
throw;

View File

@ -341,6 +341,8 @@ BEGIN_PROTECTED
// confine the selection
auto prev_selected = mp_editables->selection_size ();
mp_tree_model->begin_reset_model ();
auto selection = mp_ui->tree->selectionModel ()->selectedIndexes ();
@ -409,6 +411,10 @@ BEGIN_PROTECTED
update_controls ();
if (m_objects != prev_selected) {
mp_editables->signal_selection_changed ();
}
END_PROTECTED
}