For NSE_45763
[apps/osp/Gallery.git] / src / GlAlbumListPresentationModel.cpp
index 8a02e3c..7e8b035 100644 (file)
@@ -731,6 +731,7 @@ AlbumListPresentationModel::InitializeAlbumInfoList(const ContentType& contentTy
                                if (pAlbumInfo != null && pAlbumInfo->GetContentIdCount() > 0)
                                {
                                        __pAlbumInfoList->Add(pAlbumInfo);
+                                       AppLog("Adding album");
                                }
                                else
                                {
@@ -743,7 +744,7 @@ AlbumListPresentationModel::InitializeAlbumInfoList(const ContentType& contentTy
                int insertIndex = 0;
                if (pAllAlbumInfo->GetContentIdCount() > 0)
                {
-                       __pAlbumInfoList->InsertAt((Object&)*pAllAlbumInfo, ++insertIndex);
+                       __pAlbumInfoList->InsertAt((Object&)*pAllAlbumInfo, insertIndex++);
                }
                else
                {
@@ -752,7 +753,7 @@ AlbumListPresentationModel::InitializeAlbumInfoList(const ContentType& contentTy
 
                if (pCameraAlbumInfo->GetContentIdCount() > 0)
                {
-                       __pAlbumInfoList->InsertAt((Object&)*pCameraAlbumInfo, ++insertIndex);
+                       __pAlbumInfoList->InsertAt((Object&)*pCameraAlbumInfo, insertIndex++);
                }
                else
                {
@@ -761,7 +762,7 @@ AlbumListPresentationModel::InitializeAlbumInfoList(const ContentType& contentTy
 
                if (pDownloadAlbumInfo->GetContentIdCount() > 0)
                {
-                       __pAlbumInfoList->InsertAt((Object&)*pDownloadAlbumInfo, ++insertIndex);
+                       __pAlbumInfoList->InsertAt((Object&)*pDownloadAlbumInfo, insertIndex++);
                }
                else
                {
@@ -770,7 +771,7 @@ AlbumListPresentationModel::InitializeAlbumInfoList(const ContentType& contentTy
 
                if (pNoNameAlbumInfo->GetContentIdCount() > 0)
                {
-                       __pAlbumInfoList->InsertAt((Object&)*pNoNameAlbumInfo, ++insertIndex);
+                       __pAlbumInfoList->InsertAt((Object&)*pNoNameAlbumInfo, insertIndex++);
                }
                else
                {