# HG changeset patch # User Matti Hamalainen # Date 1491212781 -10800 # Node ID 0e0948aec438b88df022cf4f61703d0720d9e6ca # Parent 6e7ab784f7a4380ce08adf6fc68e169085c93a1c De-select active person when deleting. diff -r 6e7ab784f7a4 -r 0e0948aec438 main.cpp --- a/main.cpp Mon Apr 03 12:46:04 2017 +0300 +++ b/main.cpp Mon Apr 03 12:46:21 2017 +0300 @@ -369,6 +369,7 @@ { int rv = model_People->deletePerson(info.id); updatePersonList(); + setActivePerson(-1); if (rv != 0) { errorMsg(tr("SQL-tietokantavirhe"),