File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ void CThumbsView::MyDeleteAllItems()
173173 SimpleDelete (i, false );
174174 }
175175 DeleteAllItems ();
176- clearImageList ( );
176+ imageList_. SetImageCount ( 1 );
177177}
178178
179179bool CThumbsView::SimpleDelete (int ItemIndex, bool DeleteThumb, bool deleteFile)
@@ -804,11 +804,6 @@ void CThumbsView::getThumbnail(int itemIndex) {
804804 thumbQueueCondition_.notify_one ();
805805}
806806
807- void CThumbsView::clearImageList () {
808- // Default thumbnail (index=0) will be regenerated in AddImage()
809- imageList_.RemoveAll ();
810- }
811-
812807void CThumbsView::beginAdd () {
813808 batchAdd_ = true ;
814809 SetRedraw (FALSE );
Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ class CThumbsView :
109109 CImageViewItem getNextImgViewItem (const CImageViewItem& currentItem) override ;
110110 CImageViewItem getPrevImgViewItem (const CImageViewItem& currentItem) override ;
111111 void getThumbnail (int itemIndex);
112- void clearImageList ();
113112 void beginAdd ();
114113 void endAdd ();
115114protected:
You can’t perform that action at this time.
0 commit comments