Skip to content

Commit

Permalink
getmangainfosthread, don't load cover if url is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed May 9, 2015
1 parent 9fcf08a commit 026c5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baseunits/uGetMangaInfosThread.pas
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ procedure TGetMangaInfosThread.DoGetInfos;
Synchronize(MainThreadShowInfos);
FCover.Clear;
// If there's cover then we will load it to the TPicture component.
if (OptionEnableLoadCover) then
if OptionEnableLoadCover and (Trim(FInfo.mangaInfo.coverLink) <> '') then
FIsHasMangaCover := GetPage(nil, FInfo.FHTTP, TObject(FCover), FInfo.mangaInfo.coverLink, 3, True)
else
FIsHasMangaCover := False;
Expand Down

0 comments on commit 026c5ba

Please sign in to comment.