From: Iryna Ferenchak Date: Sat, 9 Jul 2016 10:26:29 +0000 (+0300) Subject: TSAM-6243 Number of selected logs still displays while none of log be selected X-Git-Tag: submit/tizen/20160709.120329^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1dc9019da48d565c784f95a279408bb85f51c21;p=profile%2Fmobile%2Fapps%2Fnative%2Fphone-contacts.git TSAM-6243 Number of selected logs still displays while none of log be selected Change-Id: Ifcaf9d9953d4019c88a16bd5cec2b8b18f6b7778 Signed-off-by: Iryna Ferenchak --- diff --git a/lib-logs/src/Logs/List/LogsView.cpp b/lib-logs/src/Logs/List/LogsView.cpp index a701970..93645e7 100644 --- a/lib-logs/src/Logs/List/LogsView.cpp +++ b/lib-logs/src/Logs/List/LogsView.cpp @@ -285,6 +285,15 @@ void LogsView::onSettingsChanged(system_settings_key_e key) if (key == SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY || key == SYSTEM_SETTINGS_KEY_TIME_CHANGED) { + for (auto &&item : *m_Genlist) { + auto genlistItem = static_cast(item); + if (genlistItem && !genlistItem->isGroupItem()) { + auto logItem = dynamic_cast(genlistItem); + if (logItem) { + logItem->setChecked(false); + } + } + } elm_genlist_clear(m_Genlist->getEvasObject()); m_LogProvider.resetLogGroups(); fillGenlist();