Skip to content
This repository has been archived by the owner on Apr 12, 2020. It is now read-only.

Commit

Permalink
When populating SyncView with thumbnails, the code used to abort the …
Browse files Browse the repository at this point in the history
…whole process if fetching a thumbnail thrown an exception. Now it skips it and proceeds to next.
  • Loading branch information
vboctor committed May 27, 2013
1 parent f34297e commit bd8dbcc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Sync/SyncView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,18 @@ private void UpdateThumbnails()

if (bm == null)
{
bm = new Bitmap(tt.org);
//bmSize = ThumbnailSize*2;
try
{
bm = new Bitmap(tt.org);
//bmSize = ThumbnailSize*2;

if (bm == null)
if (bm == null)
continue;
}
catch (Exception)
{
continue;
}
}

Rectangle rc = new Rectangle(0, 0, bmSize, bmSize);
Expand Down

0 comments on commit bd8dbcc

Please sign in to comment.