When updating the view, ensure that the selection remains consistent
authorDan Breslau <dbreslau@painless-security.com>
Wed, 5 Oct 2016 22:30:53 +0000 (18:30 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Wed, 5 Oct 2016 22:30:53 +0000 (18:30 -0400)
src/moonshot-identity-management-view.vala

index 32313cf..15ab8d9 100644 (file)
@@ -268,6 +268,9 @@ public class IdentityManagerView : Window {
 
         if (this.selected_idcard != null && this.selected_idcard.nai == id_card.nai) {
             logger.trace(@"add_id_card_widget: Expanding selected idcard widget");
+
+            // Ensure that the selected_idcard is one that belongs to the current list of id cards
+            this.selected_idcard = id_card;
             id_card_widget.expand();
         }
         return id_card_widget;