From 2e4c23fd9b4184328a012fa8b7d945a8636fcb7a Mon Sep 17 00:00:00 2001
From: Nicolas Jager <nicolas.jager@savoirfairelinux.com>
Date: Wed, 26 Oct 2016 13:51:11 -0400
Subject: [PATCH] fix : systematical deletion of account after edit

Change-Id: Ibcf052a78288af59fba58bd36982cf885d6d0777
Tuleap: #1251
---
 SmartPanel.xaml.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SmartPanel.xaml.cpp b/SmartPanel.xaml.cpp
index a93d42e..51235ed 100644
--- a/SmartPanel.xaml.cpp
+++ b/SmartPanel.xaml.cpp
@@ -762,7 +762,7 @@ void RingClientUWP::Views::SmartPanel::_acceptAccountModification__Click(Platfor
     auto accountsListSize = dynamic_cast<Vector<AccountListItem^>^>(_accountsList_->ItemsSource)->Size;
 
     /* if the delete button is toggled, just delete the account */
-    if (_deleteAccountBtnEditionMenu_->IsChecked && accountsListSize > 1) {
+    if ( _deleteAccountBtnEditionMenu_->IsChecked->Value == true && accountsListSize > 1) {
         AccountListItem^ item;
         for each (item in AccountListItemsViewModel::instance->itemsList)
             if (item->_account->accountID_ == accountId)
-- 
GitLab