Fix jira issue - SelectionPanel count
authorHyukSoon Choi <hs619.choi@samsung.com>
Mon, 1 Apr 2013 08:14:08 +0000 (17:14 +0900)
committerHyukSoon Choi <hs619.choi@samsung.com>
Mon, 1 Apr 2013 08:14:08 +0000 (17:14 +0900)
Change-Id: I1dd58a24788c5c4b071f25a83ce8e7d9076b9054
Signed-off-by: HyukSoon Choi <hs619.choi@samsung.com>
src/GlAllListSelectionPanel.cpp

index 8fc2e08..5e31859 100644 (file)
@@ -690,15 +690,14 @@ AllListSelectionPanel::SelectAllPressed(void)
 {
        bool needToSelectAll = true;
        int checkedCount = GetItemCheckedCount();
-       int totalFileCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
-       if (checkedCount == totalFileCount)
+       if (checkedCount == __itemCount)
        {
                needToSelectAll = false;
        }
 
        if (needToSelectAll == true)
        {
-               for (int i = 0 ; i < totalFileCount; ++i)
+               for (int i = 0 ; i < __itemCount; ++i)
                {
                        if (__pContentIconListView->IsItemChecked(i) == false)
                        {
@@ -709,7 +708,7 @@ AllListSelectionPanel::SelectAllPressed(void)
        }
        else
        {
-               for (int i = 0 ; i < totalFileCount; ++i)
+               for (int i = 0 ; i < __itemCount; ++i)
                {
                        if (__pContentIconListView->IsItemChecked(i) == true)
                        {
@@ -731,7 +730,7 @@ AllListSelectionPanel::SelectAllPressed(void)
        if (needToSelectAll == true)
        {
                tempString.Format(LENGTH_COUNT_LABEL, L"%ls (%d)",
-                               ResourceManager::GetString(L"IDS_COM_BODY_SELECTED").GetPointer(), totalFileCount);
+                               ResourceManager::GetString(L"IDS_COM_BODY_SELECTED").GetPointer(), __itemCount);
        }
        else
        {