From 3f7f5533a38fc507bab7b6353c2e596a2df5db50 Mon Sep 17 00:00:00 2001
From: Nicolas Jager <nicolas.jager@savoirfairelinux.com>
Date: Fri, 7 Oct 2016 10:24:43 -0400
Subject: [PATCH] fix : smartpanel, show alias instead of accountid.

Change-Id: I838ea45b428d22d8514bc3ec6f2b45f8178160da
Tuleap: #1219
---
 SmartPanel.xaml.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/SmartPanel.xaml.cpp b/SmartPanel.xaml.cpp
index 8f2f65f..253ba01 100644
--- a/SmartPanel.xaml.cpp
+++ b/SmartPanel.xaml.cpp
@@ -134,12 +134,12 @@ RingClientUWP::Views::SmartPanel::updatePageContent()
     if (!account)
         return;
 
-    auto accountId = account->accountID_;
+    auto name = account->name_;
 
     Configuration::UserPreferences::instance->PREF_ACCOUNT_INDEX = _accountsList_->SelectedIndex;
     Configuration::UserPreferences::instance->save();
 
-    _selectedAccountName_->Text = accountId;
+    _selectedAccountName_->Text = name;
 ///    _devicesIdList_->ItemsSource = account->_devicesIdList;
     _deviceId_->Text = account->_deviceId; /* this is the current device ...
     ... in the way to get all associated devices, we have to querry the daemon : */
@@ -148,7 +148,7 @@ RingClientUWP::Views::SmartPanel::updatePageContent()
                                       ? Windows::UI::Xaml::Visibility::Visible
                                       : Windows::UI::Xaml::Visibility::Collapsed;
 
-    RingD::instance->askToRefreshKnownDevices(accountId);
+    RingD::instance->askToRefreshKnownDevices(name);
 
 }
 
-- 
GitLab